Learn NetworkX
Create, analyse and explore graphs and networks in Python
NetworkX is the standard pure-Python library for graphs: nodes connected by edges, with attributes on both. It ships hundreds of algorithms for paths, traversal, centrality, communities, flows and DAGs, plus readers and writers for common graph formats. Learn it to model relationships such as social networks, dependencies, road maps and knowledge graphs, and to prototype graph analytics quickly.
Before you start
How deep do you want to go?
1. EssentialsRead and write simple code, do the everyday basics
2. PracticalUse it productively at work, with the usual idioms
3. AdvancedThe less common features, performance and trade-offs
4. ExpertInternals and the edge cases experts know