Graph.__iter__# Graph.__iter__()[source]# 遍历节点。使用:’for n in G’。 Returns: niter迭代器图中的所有节点的迭代器。 Examples >>> G = nx.path_graph(4) # or DiGraph, MultiGraph, MultiDiGraph, etc >>> [n for n in G] [0, 1, 2, 3] >>> list(G) [0, 1, 2, 3]