-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
depth info in TopologicalSort #123
Comments
Hi! One question upfront: Would it be feasible for you to store the depth information as a vertex attribute, or would that be too much manual effort? |
Yes I agree. Both BFS and DFS require an initial node and cannot traverse the entire graph. In comparison, Topological Sort seems more appropriate. |
@williamfzc Ok, but I'm planning to add methods for running a DFS und BFS over the entire graph, not just over the nodes that are reachable from the start vertex. I've opened #124 for this. |
Good idea and lets continue in #124 |
Maybe #61 could also be interesting in this context. |
Hi :) This is a discussion.
While TopologicalSort is the appropriate API for our needs, it has a limitation in that the depth information of the nodes cannot be easily represented by a single slice. This can make it challenging to determine which nodes belong to which level after obtaining the sorted slice.
Are there any existed methods I have missed?
The text was updated successfully, but these errors were encountered: