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

Path through given vertex #19

Closed
kolkov opened this issue Jun 16, 2023 · 2 comments
Closed

Path through given vertex #19

kolkov opened this issue Jun 16, 2023 · 2 comments

Comments

@kolkov
Copy link

kolkov commented Jun 16, 2023

How to get path through a given vertex?

@RyanCarrier
Copy link
Owner

I think the simplest and best way would just be to run two copies, one from src to pass through and one from passthrough to dest

@RyanCarrier
Copy link
Owner

I don't think it's worthwhile adding it as a method, but with the 'safe' methods should be fine doing something like

graph.ShortestSafe(0,1)
graph.ShortestSafe(1,2)

let me know if this isn't what you mean

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants