Skip to content

Commit b596022

Browse files
committed
Fix: faulty encoding without faithfulness
1 parent 5fd889a commit b596022

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

gap/io.gi

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2281,6 +2281,15 @@ function(D)
22812281
# matrix, and appends a '&' to the start. The old '+' format can be read by
22822282
# DigraphFromDigraph6String, but can no longer be written by this function.
22832283

2284+
if IsMultiDigraph(D) then
2285+
if IsSymmetricDigraph(D) then
2286+
ErrorNoReturn("the argument <D> must not have multiple edges ",
2287+
"consider encoding in Sparse6 or Disparse6, ");
2288+
fi;
2289+
ErrorNoReturn("the argument <D> must not have multiple edges ",
2290+
"consider encoding in Disparse6, ");
2291+
fi;
2292+
22842293
list := [];
22852294
adj := OutNeighbours(D);
22862295
n := Length(DigraphVertices(D));
@@ -2338,7 +2347,11 @@ function(D)
23382347
local list, n, lenlist, adj, nredges, k, blist, v, nextbit, i, j,
23392348
bitstopad, pos, block;
23402349
if not IsSymmetricDigraph(D) then
2341-
ErrorNoReturn("the argument <D> must be a symmetric digraph,");
2350+
if IsMultiDigraph(D) then
2351+
ErrorNoReturn("the argument <D> must be a symmetric digraph consider encoding in Disparse6,");
2352+
fi;
2353+
else
2354+
ErrorNoReturn("the argument <D> must be a symmetric digraph consider encoding in Digraph6 or Disparse6,");
23422355
fi;
23432356

23442357
list := [];

0 commit comments

Comments
 (0)