- path_weight(G, path, weight)#
Returns total cost associated with specified path and weight
A NetworkX graph.
- path: list
A list of node labels which defines the path to traverse
- weight: string
A string indicating which edge attribute to use for path cost
- cost: int or float
An integer or a float representing the total cost with respect to the specified weight of the specified path
If the specified edge does not exist.