networkx.classes.function.nodes

nodes(G)[source]

Returns an iterator over the graph nodes.