NetworkX

Previous topic

networkx.random_geometric_graph

Next topic

networkx.is_kl_connected

Quick search

networkx.kl_connected_subgraph

kl_connected_subgraph(G, k, l, low_memory=False, same_as_graph=False)

Returns the maximum locally (k,l) connected subgraph of G.

(k,l)-connected subgraphs are presented by Fan Chung and Li in “The Small World Phenomenon in hybrid power law graphs” to appear in “Complex Networks” (Ed. E. Ben-Naim) Lecture Notes in Physics, Springer (2004)

low_memory=True then use a slightly slower, but lower memory version same_as_graph=True then return a tuple with subgraph and pflag for if G is kl-connected