spectral_gap#

module wntr.metrics.topographic

spectral_gap(G)[source]#

Spectral gap

Difference in the first and second eigenvalue of the adjacency matrix

Parameters:

G (networkx MultiDiGraph) – Graph

Return type:

Spectral gap (float)