1NetworkX 2-------- 3 4NetworkX is a Python package for the creation, manipulation, and 5study of the structure, dynamics, and functions of complex networks. 6 7Documentation 8http://networkx.github.io 9Mailing List 10https://groups.google.com/forum/#!forum/networkx-discuss 11Development 12https://github.com/networkx/networkx 13 14.. image:: https://travis-ci.org/networkx/networkx.png?branch=master 15:target: https://travis-ci.org/networkx/networkx 16 17.. image:: https://readthedocs.org/projects/networkx/badge/?version=latest 18:target: https://readthedocs.org/projects/networkx/?badge=latest 19:alt: Documentation Status 20 21.. image:: https://coveralls.io/repos/networkx/networkx/badge.png?branch=master 22:target: https://coveralls.io/r/networkx/networkx?branch=master 23 24 25A quick example that finds the shortest path between two nodes in an undirected graph:: 26 27>>> import networkx as nx 28>>> G = nx.Graph() 29>>> G.add_edge('A', 'B', weight=4) 30>>> G.add_edge('B', 'D', weight=2) 31>>> G.add_edge('A', 'C', weight=3) 32>>> G.add_edge('C', 'D', weight=4) 33>>> nx.shortest_path(G, 'A', 'D', weight='weight') 34['A', 'B', 'D'] 35 36Distributed with a BSD license; see LICENSE.txt:: 37 38Copyright (C) 2004-2016 NetworkX Developers 39Aric Hagberg <hagberg@lanl.gov> 40Dan Schult <dschult@colgate.edu> 41Pieter Swart <swart@lanl.gov> 42