NetworkX

Versions

Latest Release

1.8.1 – 4 August 2013
downloads | docs | pdf

Development

1.9dev
github | docs | pdf
travis
Coverage Status

Quick ExampleΒΆ

>>> import networkx as nx
>>> G=nx.Graph()
>>> G.add_node("spam")
>>> G.add_edge(1,2)
>>> print(G.nodes())
[1, 2, 'spam']
>>> print(G.edges())
[(1, 2)]

See more simple and complicated examples, or a gallery. of network drawings.