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

"Undirected" mode for shortest paths with directed graphs #12

Open
etiennedeg opened this issue Oct 19, 2021 · 1 comment
Open

"Undirected" mode for shortest paths with directed graphs #12

etiennedeg opened this issue Oct 19, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@etiennedeg
Copy link
Member

This is a repost of this issue on the old repo.


Hi,
This is a follow up of this discussion.
Is there a way to efficiently find shortest paths in a directed graph while ignoring the direction of the edges ? (so without casting to a directed graph)
R seems to have an "undirected" mode for this.


Having thought more on this, better than a keyword in functions, it would be practical to have a new graph type that would be a wrapper around a directed graph, with redefinition of accessers to make it an undirected graph (a sort of graph view). This would avoid the heavy conversion to an undirected graph.

@jpfairbanks
Copy link
Member

Yes I agree, solving this at the type level with a wrapper type that implements the abstract undirected graph API is the right move here. We don't want to add a kwarg for every function to add "undirected mode" just wrap it once and be done

@gdalle gdalle added enhancement New feature or request good first issue Good for newcomers labels Nov 11, 2021
@gdalle gdalle changed the title "undirected" mode for shortest paths with directed graphs "Undirected" mode for shortest paths with directed graphs Nov 11, 2021
@gdalle gdalle removed the good first issue Good for newcomers label Nov 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants