Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pramothragavan committed May 6, 2024
1 parent fb1cab1 commit 52d7841
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions gap/io.gi
Original file line number Diff line number Diff line change
Expand Up @@ -1401,7 +1401,7 @@ function(config, key)
Pos := L[Length(L)] + 1;
tempStr := "";

while IsInt(Int(config{[Pos]})) do
while Int(config{[Pos]}) <> fail do
tempStr := Concatenation(tempStr, config{[Pos]});
Pos := Pos + 1;
if Pos > Length(config) then
Expand All @@ -1420,18 +1420,14 @@ end);

BindGlobal("DIGRAPHS_LegalDreadnautEdge",
function(vertex, x, r)
if x > r.nValue then
if x > r.nValue or x < 1 then
Error("Illegal edge ", vertex + r.dollarValue - 1, " -> ", x + r.dollarValue - 1, " (original indexing)");
return false;
fi;
if not r.dExists and x = vertex then
Error("Illegal edge ", vertex + r.dollarValue - 1, " -> ", x + r.dollarValue - 1, " (original indexing). Ensure 'd' is declared to include loops.");
return false;
fi;
if x < 1 then
Error("Illegal edge ", vertex + r.dollarValue - 1, " -> ", x + r.dollarValue - 1, " (original indexing)");
return false;
fi;
return true;
end);

Expand Down Expand Up @@ -1512,8 +1508,8 @@ function(graphData, r)
edgeList := List([1..r.nValue], x -> []);
breakflag := false;

graphData := ReplacedString(graphData, ":", " : ");
graphData := ReplacedString(graphData, ";", " ; ");
# graphData := ReplacedString(graphData, ":", " : ");
# graphData := ReplacedString(graphData, ";", " ; ");
NormalizeWhitespace(graphData); #losing newlines here
parts := DIGRAPHS_SplitDreadnautLines(graphData);

Expand Down

0 comments on commit 52d7841

Please sign in to comment.