Compute the cost of the flow given by flowDict on graph G.
Note that this function does not check for the validity of the flow flowDict. This function will fail if the graph G and the flow don’t have the same edge set.
Parameters : | G : NetworkX graph
weight: string :
flowDict: dictionary :
|
---|---|
Returns : | cost: Integer, float :
|