Current version: 1.7
Get NetworkX from the Python Package Index, or install it with:
easy_install networkx
Join the Google group:
You can also open a ticket at the NetworkX Developer Zone.
NetworkX is a Python language software package for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks.
>>> 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)] |
Overview Tutorial Reference |
Contents Examples Gallery |