NetworkX

Previous topic

networkx.Graph.clear

Next topic

networkx.Graph.nodes_iter

Quick search

networkx.Graph.nodes

Graph.nodes()

Return a list of the nodes.

Examples

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