NetworkX is a Python library for building, manipulating, and analyzing complex networks and graphs. Use it to create undirected/directed and multi-edges gr…
NetworkX is a Python library for building, manipulating, and analyzing complex networks and graphs. Use it to create undirected/directed and multi-edges graphs (Graph, DiGraph, MultiGraph, MultiDiGraph); add rich node/edge attributes; and convert between common representations (edge lists, adjacency matrices, GraphML, JSON, CSV). It provides a broad set of algorithms—shortest paths (Dijkstra), centrality measures, PageRank, clustering, community detection, minimum spanning trees, and max-flow—as well as tools for network generation (Erdős–Rényi, Barabási–Albert, Watts–Strogatz). NetworkX integrates with numpy/pandas and visualization tools (matplotlib, interactive libraries) for exploratory analysis, simulation, and reproducible workflows. Typical use cases include social, biological, transportation, citation, and knowledge-graph analysis. Core advantages are a clear Pythonic API, rich algorithmic coverage, and fast prototyping for medium-scale graph analytics.
Esta página faz parte do hub OpenClaw Skills com guias de instalação, navegação por categorias e links práticos.