NetworkX

Versions

Latest Release

1.9 – 21 June 2014
downloads | docs | pdf

Development

2.0dev
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.