networkx

Create, analyze, and visualize graphs with Python and NetworkX.

16|7|Updated Nov 20, 2025
One-click install
npx skills add https://github.com/jackspace/ClaudeSkillz --skill networkx-jackspace
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: networkx
Source: https://github.com/jackspace/ClaudeSkillz/tree/main/skills/scientific-pkg-networkx
Command: npx skills add https://github.com/jackspace/ClaudeSkillz --skill networkx-jackspace

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

NetworkX provides tools to create, analyze, and visualize graphs and networks; ideal for social networks, transportation, biology, and more.

Core Features & Use Cases

  • Graph creation and manipulation (Graph, DiGraph, MultiGraph)
  • Graph algorithms (shortest path, centrality, clustering)
  • Graph generators and IO for graphs

Quick Start

Install NetworkX and run a quick example to create a graph and compute a shortest path.

Frequently Asked Questions about networkx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create and analyze graphs for social networks or transportation systems?

NetworkX is a Python toolkit that creates, analyzes, and visualizes graphs across domains like social networks, transportation, and biology. It supports four graph types (Graph, DiGraph, MultiGraph, MultiDiGraph) and provides algorithms for shortest paths, centrality, clustering, and community detection.

What graph algorithms does NetworkX support?

NetworkX implements shortest path, centrality measures, clustering coefficients, community detection, flow algorithms, minimum spanning trees, and PageRank. These algorithms work across directed, undirected, and multigraph structures for network analysis.

Can I import and export graphs in different file formats?

Yes, NetworkX supports diverse I/O formats including edge lists, GraphML, JSON, CSV, and adjacency matrices. You can read and write graphs to these formats, enabling integration with other tools and data pipelines.

How do I visualize graphs with NetworkX?

NetworkX integrates with matplotlib for static graph visualization and supports interactive libraries for dynamic visualization. You can render network layouts, node positions, and edge relationships directly from your graph objects.

Can NetworkX generate synthetic graphs for testing or modeling?

Yes, NetworkX includes graph generators to create synthetic networks with specific properties. These generators support common network models for testing algorithms and simulating real-world network structures.