Experimental

Computes baseline degree, closeness, and betweenness centrality metrics for network nodes.

vector network centrality

Parameters

NameDescriptionRequiredDefault
inputInput line network layer.Requirednetwork.shp
snap_toleranceOptional node snapping tolerance for graph construction.Optional0.0
edge_cost_fieldOptional numeric line field used as an impedance multiplier for segment length.Optional
one_way_fieldOptional line field marking one-way digitized edges (true/1/yes means from first to second vertex only).Optional
blocked_fieldOptional line field marking blocked/closed edges to exclude from graph construction (true/1/yes blocks).Optional
outputOutput point vector path.Required

Examples

Computes node-level centrality metrics for a line network.

wbe.network_centrality_metrics(input='network.shp', output='network_centrality.gpkg', snap_tolerance=0.0)

Project Links

WbW Homepage User Manual Learn More