Skip to content

Commit 4d7f3c0

Browse files
committed
Some fixes on empty digraphs
1 parent 0e8e707 commit 4d7f3c0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tst/standard/weights.tst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,17 +109,17 @@ Error, the argument <D> must be a connected digraph,
109109

110110
# digraph with one node
111111
gap> d := EdgeWeightedDigraph([[]], [[]]);
112-
<immutable edge-weighted empty digraph with 1 vertex>
112+
<immutable empty digraph with 1 vertex>
113113
gap> tree := EdgeWeightedDigraphMinimumSpanningTree(d);
114-
<immutable edge-weighted empty digraph with 1 vertex>
114+
<immutable empty digraph with 1 vertex>
115115
gap> EdgeWeightedDigraphTotalWeight(tree);
116116
0
117117

118118
# digraph with loop
119119
gap> d := EdgeWeightedDigraph([[1]], [[5]]);
120120
<immutable edge-weighted digraph with 1 vertex, 1 edge>
121121
gap> EdgeWeightedDigraphMinimumSpanningTree(d);
122-
<immutable edge-weighted empty digraph with 1 vertex>
122+
<immutable empty digraph with 1 vertex>
123123

124124
# digraph with cycle
125125
gap> d := EdgeWeightedDigraph([[2], [3], [1]], [[5], [10], [15]]);
@@ -153,7 +153,7 @@ gap> EdgeWeightedDigraphMinimumSpanningTree(d);
153153

154154
# Shortest paths: one node
155155
gap> d := EdgeWeightedDigraph([[]], [[]]);
156-
<immutable edge-weighted empty digraph with 1 vertex>
156+
<immutable empty digraph with 1 vertex>
157157
gap> EdgeWeightedDigraphShortestPaths(d, 1);
158158
rec( distances := [ 0 ], edges := [ fail ], parents := [ fail ] )
159159

0 commit comments

Comments
 (0)