wntr.metrics.topographic#

The wntr.metrics.topographic module contains topographic metrics that are not available directly with NetworkX. Functions in this module operate on a NetworkX MultiDiGraph, which can be created by calling G = wn.to_graph()

Functions

algebraic_connectivity

Algebraic connectivity

bridges

Bridge links

central_point_dominance

Central point dominance

critical_ratio_defrag

Critical ratio of defragmentation

spectral_gap

Spectral gap

terminal_nodes

Nodes with degree 1

valve_segment_attributes

Valve segment attributes include 1) the number of valves surrounding each valve and (optionally) the increase in segment demand if a given valve is removed and the increase in segment pipe length if a given valve is removed.

valve_segments

Valve segmentation