spaghetti.Network.full_distance_matrix

Network.full_distance_matrix(self, n_processes, gen_tree=False)[source]

All vertex-to-vertex distances on a network. This function is called from within allneighbordistances(), nearestneighbordistances(), and distancebandweights().

Parameters
n_processesint

Cpu cores for multiprocessing.

gen_treebool

Rebuild shortest path True, or skip False.

Notes

Based on [Dij59].