quetzal.engine.connectivity module
- quetzal.engine.connectivity.adaptive_clustering(nodes, zones, mean_distance_threshold=None, distance_col=None)[source]
Compute cluster_id for each node, based on given zoning and agglomerative_clustering. For each zone, distance_threshold is computed as follow: - take value of distance_col if parameter is given - otherwise:
consider twice the characteristic distance of each zone (area**0.5)
scale in average to mean_distance_threshold if given
- quetzal.engine.connectivity.build_footpaths(nodes, speed=3, max_length=None, n_clusters=None, coordinates_unit='degree')[source]
- quetzal.engine.connectivity.centroid_and_links(nodes, n_clusters, coordinates_unit='degree')[source]