Return the nodes in the component of graph containing node n.
G : NetworkX Graph
An undirected graph.
n : node label
A node in G
comp : lists
A list of nodes in component of G containing node n.
See also
connected_components
Notes
For undirected graphs only.