NetworkX

Table Of Contents

Previous topic

articulation_points

Next topic

average_node_connectivity

Connectivity

Flow based connectivity and cut algorithms

Connectivity functions

Flow based connectivity algorithms

average_node_connectivity(G) Returns the average connectivity of a graph G.
local_node_connectivity(G, s, t[, ...]) Computes local node connectivity for nodes s and t.
node_connectivity(G[, s, t]) Returns node connectivity for a graph or digraph G.
local_edge_connectivity(G, u, v[, aux_digraph]) Returns local edge connectivity for nodes s and t in G.
edge_connectivity(G[, s, t]) Returns the edge connectivity of the graph or digraph G.
all_pairs_node_connectivity_matrix(G) Return a numpy 2d ndarray with node connectivity between all pairs of nodes.

Cut functions

Flow based cut algorithms

minimum_st_node_cut(G, s, t[, aux_digraph, ...]) Returns a set of nodes of minimum cardinality that disconnect source
minimum_node_cut(G[, s, t]) Returns a set of nodes of minimum cardinality that disconnects G.
minimum_st_edge_cut(G, s, t[, capacity]) Returns the edges of the cut-set of a minimum (s, t)-cut.
minimum_edge_cut(G[, s, t]) Returns a set of edges of minimum cardinality that disconnects G.