networkx.classes.function.nodes

nodes(G)[source]

Return an iterator over the graph nodes.