Skip to content

Commit 69fe761

Browse files
committed
Fix: faulty encoding without faithfulness
1 parent 1a1fc00 commit 69fe761

2 files changed

Lines changed: 2 additions & 17 deletions

File tree

gap/io.gi

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2283,15 +2283,6 @@ function(D)
22832283
# matrix, and appends a '&' to the start. The old '+' format can be read by
22842284
# DigraphFromDigraph6String, but can no longer be written by this function.
22852285

2286-
if IsMultiDigraph(D) then
2287-
if IsSymmetricDigraph(D) then
2288-
ErrorNoReturn("the argument <D> must not have multiple edges ",
2289-
"consider encoding in Sparse6 or Disparse6, ");
2290-
fi;
2291-
ErrorNoReturn("the argument <D> must not have multiple edges ",
2292-
"consider encoding in Disparse6, ");
2293-
fi;
2294-
22952286
list := [];
22962287
adj := OutNeighbours(D);
22972288
n := Length(DigraphVertices(D));
@@ -2357,13 +2348,6 @@ InstallMethod(Sparse6String, "for a digraph by out-neighbours",
23572348
function(D)
23582349
local list, n, lenlist, adj, nredges, k, blist, v, nextbit, i, j,
23592350
bitstopad, pos, block;
2360-
if not IsSymmetricDigraph(D) then
2361-
if IsMultiDigraph(D) then
2362-
ErrorNoReturn("the argument <D> must be a symmetric digraph consider encoding in Disparse6,");
2363-
fi;
2364-
else
2365-
ErrorNoReturn("the argument <D> must be a symmetric digraph consider encoding in Digraph6 or Disparse6,");
2366-
fi;
23672351

23682352
if not IsSymmetricDigraph(D) then
23692353
if IsMultiDigraph(D) then

tst/standard/io.tst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,8 @@ Error, the 2nd argument <s> is not a valid disparse6 string,
546546

547547
# Special format characters
548548
gap> Sparse6String(ChainDigraph(3));
549-
Error, the argument <D> must be a symmetric digraph,
549+
Error, the argument <D> must be a symmetric digraph consider encoding in Digra\
550+
ph6 or Disparse6,
550551
gap> Sparse6String(CompleteDigraph(1));
551552
":@"
552553
gap> gr := Digraph([[1], []]);;

0 commit comments

Comments
 (0)