We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5c73de commit 27ef3a6Copy full SHA for 27ef3a6
2 files changed
gap/oper.gi
@@ -241,7 +241,7 @@ function(D, src, ran)
241
pos := Position(D!.OutNeighbours[src], ran);
242
if pos <> fail then
243
Remove(D!.OutNeighbours[src], pos);
244
- Remove(DigraphEdgeLabels(D)[src], pos);
+ RemoveDigraphEdgeLabel(D, src, pos);
245
fi;
246
return D;
247
end);
tst/testinstall.tst
@@ -416,6 +416,19 @@ gap> d := EdgeWeightedDigraph([[2], [1]], [[5], [10]]);
416
gap> EdgeWeights(d);
417
[ [ 5 ], [ 10 ] ]
418
419
+# Issue 617: bug in DigraphRemoveEdge, wasn't removing edge labels
420
+gap> D := DigraphByEdges(IsMutableDigraph, [[1, 2], [2, 3], [3, 4], [4, 1], [1, 1]]);;
421
+gap> DigraphEdgeLabels(D);
422
+[ [ 1, 1 ], [ 1 ], [ 1 ], [ 1 ] ]
423
+gap> DigraphRemoveEdge(D, [1, 2]);;
424
425
+[ [ 1 ], [ 1 ], [ 1 ], [ 1 ] ]
426
427
+gap> SetDigraphEdgeLabel(D, 1, 2, "test");
428
+gap> DigraphRemoveEdge(D, 1, 2);;
429
430
431
+
432
# DIGRAPHS_UnbindVariables
433
gap> Unbind(D);
434
gap> Unbind(adj);
0 commit comments