- node_connected_component(G, n)¶
Returns the set of nodes in the component of graph containing node n.
- GNetworkX Graph
An undirected graph.
- nnode label
A node in G
A set of nodes in the component of G containing node n.
If G is directed.
For undirected graphs only.