Skip to content

Commit 52bf4ad

Browse files
authored
Merge pull request #273 from wilfwilson/fix-issue-272
Fix ViewString for known non-complete digraphs
2 parents 218f92a + 08d676d commit 52bf4ad

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

gap/digraph.gi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ function(D)
449449
elif HasIsChainDigraph(D) and IsChainDigraph(D) then
450450
Append(str, "chain ");
451451
display_nredges := false;
452-
elif HasIsCompleteDigraph(D) and IsDigraph(D) then
452+
elif HasIsCompleteDigraph(D) and IsCompleteDigraph(D) then
453453
Append(str, "complete ");
454454
display_nredges := false;
455455
elif HasIsCompleteBipartiteDigraph(D) and IsCompleteBipartiteDigraph(D) then

tst/testinstall.tst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,13 @@ gap> D := NullDigraph(IsMutableDigraph, 10);
328328
gap> MakeImmutable(D);
329329
<immutable empty digraph with 10 vertices>
330330
331+
# Issue 272: ViewString for known non-complete digraphs
332+
gap> D := Digraph([[2], []]);;
333+
gap> IsCompleteDigraph(D);
334+
false
335+
gap> D;
336+
<immutable digraph with 2 vertices, 1 edge>
337+
331338
# DIGRAPHS_UnbindVariables
332339
gap> Unbind(gr2);
333340
gap> Unbind(gr);

0 commit comments

Comments
 (0)