Add shortest path iterator
In order to support more use cases, we can add a shortest path between two nodes iterator.
What should be preferred? Bellman–Ford or Dijkstra's algorithm. Or both!
Yes! We can certainly do both!
We can expose them as Graph::bellman_ford() and Graph::dijkstra().
I was trying to implement the Dijkstra algorithm, but found that there is no method to get the weight of edge between two vertices. Maybe you can help. If I have 'VertexId's of two nodes, how would I know weight of edge between them?
Maybe we need to do these first: #4 #3 and also include a Graph::weight method which receives as parameters two VertexId structs.
Graph::dijkstra() and iterator::Dijkstra exist now.
Sorry if this is out of nowhere, but would it not be a more productive approach to implement the traits in petgraph to get access to all their algorithms implemented in petgraph::algo?
Is it because of the no-std option that this route was not taken?