nodes

networkx.classes.function.nodes(G)[source]

Return a copy of the graph nodes in a list.