-
Notifications
You must be signed in to change notification settings - Fork 93
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
[BUG] biconnected_components
loses some edges - should we return only vertices ?
#13
Comments
I think this is a breaking API change, so I would rather fix the bug and possibly add an additional function that does biconnected_component_vertices or something that just computes the vertex set. |
@jpfairbanks Wouldn't a new function be a bit redundant ? Or do you suggest to deprecate the old method ? |
It is indeed a bit unfortunate that this method returns sets of edges (which may not even have the same edge type as the input graph) and not sets of vertices. In most cases a user will probably have to do some extra work to get something out of this edge set. But as this is indeed breaking, I think that should be a different PR from the bug fix itself. @etiennedeg you mentioned that you already know a way to solve that bug, would you mind making a PR that fixes that bug, with some additional test that would cover that case? |
Ok I'm doing it |
Fixed by etiennedeg@ee06ccc |
Was this fixed by a PR? |
No, this was done when I started contributing to this repo, and did some wild commits (which I don't do nowadays). I closed because my fix was a two line fix, and is already in the codebase since more than a year, but feel free to take a look / reopen for discussion if you feel like it. |
No worries! I like your wild side 🤣 |
This is a repost of this issue, I think it deserves discussion on whether we should return edges instead of vertices.
Summary :
graph_s
has 23 edges, but only 19 are returned in the unique biconnected component.The text was updated successfully, but these errors were encountered: