Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion gap/io.gi
Original file line number Diff line number Diff line change
Expand Up @@ -2281,6 +2281,15 @@ function(D)
# matrix, and appends a '&' to the start. The old '+' format can be read by
# DigraphFromDigraph6String, but can no longer be written by this function.

if IsMultiDigraph(D) then
if IsSymmetricDigraph(D) then
ErrorNoReturn("the argument <D> must not have multiple edges ",
"consider encoding in Sparse6 or Disparse6, ");
fi;
ErrorNoReturn("the argument <D> must not have multiple edges ",
"consider encoding in Disparse6, ");
fi;

list := [];
adj := OutNeighbours(D);
n := Length(DigraphVertices(D));
Expand Down Expand Up @@ -2338,7 +2347,11 @@ function(D)
local list, n, lenlist, adj, nredges, k, blist, v, nextbit, i, j,
bitstopad, pos, block;
if not IsSymmetricDigraph(D) then
ErrorNoReturn("the argument <D> must be a symmetric digraph,");
if IsMultiDigraph(D) then
ErrorNoReturn("the argument <D> must be a symmetric digraph consider encoding in Disparse6,");
fi;
else
ErrorNoReturn("the argument <D> must be a symmetric digraph consider encoding in Digraph6 or Disparse6,");
fi;

list := [];
Expand Down
Loading