We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
use petgraph::{graph::{UnGraph, NodeIndex}, algo::floyd_warshall::floyd_warshall}; // 0.6.2 fn main() { let mut g: UnGraph<(), ()> = UnGraph::new_undirected(); let n1 = g.add_node(()); let n2 = g.add_node(()); g.add_edge(n1, n2, ()); println!("{:?}", floyd_warshall(&g, |_| 1)); }
outputs Ok({(NodeIndex(0), NodeIndex(0)): 0, (NodeIndex(1), NodeIndex(0)): 2147483647, (NodeIndex(1), NodeIndex(1)): 0, (NodeIndex(0), NodeIndex(1)): 1})
Ok({(NodeIndex(0), NodeIndex(0)): 0, (NodeIndex(1), NodeIndex(0)): 2147483647, (NodeIndex(1), NodeIndex(1)): 0, (NodeIndex(0), NodeIndex(1)): 1})
I expect the distance from node 1 to node 0 to be 1 rather than the max integer.
The text was updated successfully, but these errors were encountered:
This appears to have been fixed in #487, but hasn't been released yet.
Sorry, something went wrong.
I encountered this as well.
The bugfix has been published in 0.6.3.
No branches or pull requests
outputs
Ok({(NodeIndex(0), NodeIndex(0)): 0, (NodeIndex(1), NodeIndex(0)): 2147483647, (NodeIndex(1), NodeIndex(1)): 0, (NodeIndex(0), NodeIndex(1)): 1})
I expect the distance from node 1 to node 0 to be 1 rather than the max integer.
The text was updated successfully, but these errors were encountered: