Compute shorest path length and predecessors on shortest paths in weighted graphs.
| Parameters: | G : NetworkX graph source : node label
|
|---|---|
| Returns: | pred,distance : dictionaries
|
Notes
The list of predecessors contains more than one element only when there are more than one shortest paths to the key node.