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.geo_join_method(geo)[source]
quetzal.engine.connectivity.node_clustering(links, nodes, n_clusters=None, prefixe='', group_id=None, **kwargs)[source]
quetzal.engine.connectivity.parenthood_geometry(row)[source]
quetzal.engine.connectivity.voronoi_graph_and_tesselation(nodes, max_length=None, coordinates_unit='degree')[source]