What problem does it solve?
Graph analysis and visualization often require a flexible toolkit; NetworkX provides a Python library to create, manipulate, analyze, and visualize networks with a wide range of algorithms, I/O utilities, and layout options.
Core Features & Use Cases
- Graph creation and manipulation: support for Graph, DiGraph, MultiGraph types and attribute-rich nodes/edges.
- Graph algorithms: shortest paths, centrality measures, clustering, community detection, and more.
- I/O and interoperability: read/write GraphML, GML, JSON, adjacency lists, edge lists, and integrate with Pandas.
- Visualization and layout: layout algorithms and plotting with Matplotlib or interactive tools.
- Domain scopes: social networks, biological networks, transportation, knowledge graphs.
Quick Start
Install NetworkX and create a simple graph, then compute the shortest path between two nodes.