Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DigraphRemoveEdge doesn't remove edge labels #617

Closed
saffronmciver opened this issue Feb 20, 2024 · 0 comments
Closed

DigraphRemoveEdge doesn't remove edge labels #617

saffronmciver opened this issue Feb 20, 2024 · 0 comments
Assignees
Labels
bug A label for issues that are bugs resolved-pending-release A label for issues that have been resolved and that can be closed when a new version is released.

Comments

@saffronmciver
Copy link
Contributor

Trying the following, edge labels were not removed from the Digraph when an edge was removed

gap> D := DigraphByEdges(IsMutableDigraph, [[1, 2], [2, 3], [3, 4], [4, 1], [1, 1]]);;
gap> DigraphEdgeLabels(D);   
[ [ 1, 1 ], [ 1 ], [ 1 ], [ 1 ] ]  
gap> DigraphRemoveEdge(D, [1, 2]);
<mutable digraph with 4 vertices, 4 edges>
gap> DigraphEdgeLabels(D);
[ [ 1, 1 ], [ 1 ], [ 1 ], [ 1 ] ]

Like the above, edge labels were not removed when set specifically either:

gap> D := DigraphByEdges(IsMutableDigraph, [[1, 2], [2, 3], [3, 4], [4, 1], [1, 1]]);;
gap> SetDigraphEdgeLabel(D, 1, 2, "test");
gap> DigraphRemoveEdge(D, 1, 2);
<mutable digraph with 4 vertices, 4 edges>
gap> DigraphEdgeLabels(D);
[ [ "test", 1 ], [ 1 ], [ 1 ], [ 1 ] ]

If edge labels are not set, four edge labels were returned correctly

gap> DigraphRemoveEdge(D, [1, 2]);
<mutable digraph with 4 vertices, 4 edges>
gap> DigraphEdgeLabels(D);
[ [ 1 ], [ 1 ], [ 1 ], [ 1 ] ]```
@mtorpey mtorpey self-assigned this Feb 21, 2024
mtorpey added a commit to mtorpey/Digraphs that referenced this issue Feb 21, 2024
@james-d-mitchell james-d-mitchell added bug A label for issues that are bugs resolved-pending-release A label for issues that have been resolved and that can be closed when a new version is released. labels Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A label for issues that are bugs resolved-pending-release A label for issues that have been resolved and that can be closed when a new version is released.
Projects
None yet
Development

No branches or pull requests

3 participants