This is documentation for an old release of SciPy (version 0.12.0). Read this page in the documentation of the latest stable release (version 1.15.1).
Compute the shortest path lengths using the Floyd-Warshall algorithm
Parameters : | csgraph : array, matrix, or sparse matrix, 2 dimensions
directed : bool, optional
return_predecessors : bool, optional
unweighted : bool, optional
overwrite : bool, optional
|
---|---|
Returns : | dist_matrix : ndarray
predecessors : ndarray
|
Raises : | NegativeCycleError: :
|