NetworkX

Previous topic

networkx.DiGraph.clear

Next topic

networkx.DiGraph.nodes_iter

Quick search

networkx.DiGraph.nodes

DiGraph.nodes()

Return a list of the nodes.

Examples

>>> G=nx.path_graph(3)
>>> print G.nodes()
[0, 1, 2]