Skip to content

Commit

Permalink
Merge pull request #273 from wilfwilson/fix-issue-272
Browse files Browse the repository at this point in the history
Fix ViewString for known non-complete digraphs
  • Loading branch information
wilfwilson authored Nov 28, 2019
2 parents 218f92a + 08d676d commit 52bf4ad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gap/digraph.gi
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ function(D)
elif HasIsChainDigraph(D) and IsChainDigraph(D) then
Append(str, "chain ");
display_nredges := false;
elif HasIsCompleteDigraph(D) and IsDigraph(D) then
elif HasIsCompleteDigraph(D) and IsCompleteDigraph(D) then
Append(str, "complete ");
display_nredges := false;
elif HasIsCompleteBipartiteDigraph(D) and IsCompleteBipartiteDigraph(D) then
Expand Down
7 changes: 7 additions & 0 deletions tst/testinstall.tst
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,13 @@ gap> D := NullDigraph(IsMutableDigraph, 10);
gap> MakeImmutable(D);
<immutable empty digraph with 10 vertices>
# Issue 272: ViewString for known non-complete digraphs
gap> D := Digraph([[2], []]);;
gap> IsCompleteDigraph(D);
false
gap> D;
<immutable digraph with 2 vertices, 1 edge>
# DIGRAPHS_UnbindVariables
gap> Unbind(gr2);
gap> Unbind(gr);
Expand Down

0 comments on commit 52bf4ad

Please sign in to comment.