Raphael
shortest_path ignores edge weights--each edge is length 1;
dijkstra uses the edge weights. If you specify an edge but give
it a weight of zero, djikstra follows those edges without "cost",
while a straightforward shortest_path routine gives them a cost of 1.
There are more details in the docs:
http://networkx.lanl.gov/reference/algorithms.traversal.html
Dan
Thanks! However, I really can't see that description at
http://networkx.lanl.gov/reference/generated/networkx.shortest_path.html#networkx.shortest_path
for example where it just says
"
Return a list of nodes in a shortest path between source and target.
There may be more than one shortest path. This returns only one.
"
Raphael
How do we reference the NetworkX package?
I have written a paper I would to add a reference about NetworkX.
Cheers.
Cheers