spacenet.global_metrics#

Global metrics for spatial networks#

volume

Computes the total volume of a spatial network, which is defined as the sum of the edge weights specified by edge_weight_name.

diameter

The computes the diameter of the network, which is the maximum weighted shortest path between any two nodes in the network.

alpha_index

The alpha index, also knowned as the meshedness coefficient, is a metric used to evaluate and measure the connectivity of a network.

beta_index

The beta index is the ratio of edges to nodes in a spatial network.

gamma_index

The Gamma Index is a fundamental metric that measures a network's connectivity by comparing the actual number of edges to the maximum possible number of edges.

cyclomatic_number

Calculate the cyclomatic number of a network.

mean_detour_index

Computes the mean detour index of a spatial network, which is defined as the average ratio of the shortest path distance between pairs of nodes to the direct distance between those nodes in space, for all pairs of nodes that are within a specified maximum distance of each other.

mean_clustering_coefficient

Computes the mean cluster coefficient of a spatial network, which is the average of the clustering coefficients of all nodes in the graph.