networkx
Comprehensive toolkit for creating, analyzing, and visualizing complex networks and graphs in Python.
Skill by chenDeepin
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/chendeepin-networkx
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: data, research
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
networkx- Description
- Comprehensive toolkit for creating, analyzing, and visualizing complex networks and graphs in Python. Use when working with network/graph data structures, analyzing relationships between entities, computing graph algorithms (shortest paths, centrality, clustering), detecting communities, generating synthetic networks, or visualizing network topologies. Applicable to social networks, biological networks, transportation systems, citation networks, and any domain involving pairwise relationships.
- License
- MIT
- Metadata
- skill-author: K-Dense Inc.
- Instructions
- 430 lines in SKILL.md · view on GitHub
Files (6)
- SKILL.md
- algorithms.md · references/
- generators.md · references/
- graph-basics.md · references/
- io.md · references/
- visualization.md · references/
SKILL.md (first lines)
# NetworkX
## Overview
NetworkX is a Python package for creating, manipulating, and analyzing complex networks and graphs. Use this skill when working with network or graph data structures, including social networks, biological networks, transportation systems, citation networks, knowledge graphs, or any system involving relationships between entities.
## When to Use This Skill
Invoke this skill when tasks involve:
- **Creating graphs**: Building network structures from data, adding nodes and edges with attributes
- **Graph analysis**: Computing centrality measures, finding shortest paths, detecting communities, measuring clustering
- **Graph algorithms**: Running standard algorithms like Dijkstra's, PageRank, minimum spanning trees, maximum flow
- **Network generation**: Creating synthetic networks (random, scale-free, small-world models) for testing or simulation
- **Graph I/O**: Reading from or writing to various formats (edge lists, GraphML, JSON, CSV, adjacency matrices)
- **Visualization**: Drawing and customizing network visualizations with matplotlib or interactive libraries
- **Network comparison**: Checking isomorphism, computing graph metrics, analyzing structural properties
## Core Capabilities
### 1. Graph Creation and Manipulation
NetworkX supports four main graph types:
- **Graph**: Undirected graphs with single edges
- **DiGraph**: Directed graphs with one-way connections
- **MultiGraph**: Undirected graphs allowing multiple edges between nodes
- **MultiDiGraph**: Directed graphs with multiple edges
Create graphs by:
```python
import networkx as nx
# Create empty graph
G = nx.Graph()
# Add nodes (can be any hashable type)
G.add_node(1)
G.add_nodes_from([2, 3, 4])
G.add_node("protein_A", type='enzyme', weight=1.5)
# Add edges
G.add_edge(1, 2)
G.add_edges_from([(1, 3), (2, 4)])
G.add_edge(1, 4, weight=0.8, relation='interacts')
```
**Reference**: See `references/graph-basics.md` for comprehensive guidance on creating, modifying, examining, and managing graph structures, including working with attributes and subgraphs.
### 2. Graph Algorithms
NetworkX provides extensive algorithms for network analysis:
**Shortest Paths**:
```python
# Find shortest path
path = nx.shortest_path(G, source=1, target=5)
length = nx.shortest_path_length(G, source=1, target=5, weight='weight')
```
**Centrality Measures**:
```python
# Degree centrality
degree_cent = nx.degree_centrality(G)
# Betweenness centrality
betweenness = nx.betweenness_centrality(G)
# PageRank
pagerank = nx.pagerank(G)
```
**Community Detection**:
```python
from networkx.algorithms import community
# Detect communities
communities = community.greedy_modularity_communities(G)
```
**Connectivity**:
```python
# Check connectivity
is_connected = nx.is_connected(G)
# Find connected components
components = list(nx.connected_components(G))
```
**Reference**: See `references/algorithms.md` for detailed documentation on all available algorithms including shortest paths, centrality measures, clustering, community detection, flows, matching, tree algorithms, and graph traversal.
### 3. Graph Generators
Create synthetic networks for testing, simulation, or modeling:
**Classic Graphs**:
```python
# Complete graph
G = nx.complete_graph(n=10)
# Cycle graph
G = nx.cycle_graph(n=20)
# Known graphs
G = nx.karate_club_graph()
G = nx.petersen_graph()
```
**Random Networks**:
```python
# Erdős-Rényi random graph
G = nx.erdos_renyi_graph(n=100, p=0.1, seed=42)
# Barabási-Albert scale-free network
G = nx.barabasi_albert_graph(n=100, m=3, seed=42)
# Watts-Strogatz small-world network
G = nx.watts_strogatz_graph(n=100, k=6, p=0.1, seed=42)
```From chenDeepin/pymolcode, MIT.
More from chenDeepin/pymolcode
- 0.403score
molfeat
chenDeepin
Molecular featurization for ML (100+ featurizers).
SkillDFreshness: DClaude Code +9 - 0.385score
find-skills
chenDeepin
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express…
SkillDFreshness: DClaude Code +9 - 0.214score
pymolcode
chenDeepin
No description from the publisher yet.
SkillDFreshness: DClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Feb 25, 2026 (8 months ago)
- Last release
- Feb 27, 2026 (8 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/chenDeepin/pymolcode
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.652score
networkx
foryourhealth111-pixel
Comprehensive toolkit for creating, analyzing, and visualizing complex networks and graphs in Python.
SkillAFreshness: A★ 3.8KClaude Code +9 - 0.286score
networkx
hongmaple0820
Comprehensive toolkit for creating, analyzing, and visualizing complex networks and graphs in Python.
SkillDFreshness: D★ 11Claude Code +9 - 0.269score
networkx
lamm-mit
Comprehensive toolkit for creating, analyzing, and visualizing complex networks and graphs in Python.
SkillCFreshness: C★ 250Claude Code +9 - 0.247score
networkx
beita6969
Comprehensive toolkit for creating, analyzing, and visualizing complex networks and graphs in Python.
SkillDFreshness: D★ 1KClaude Code +9 - 0.243score
networkx
rafeeqinea
Comprehensive toolkit for creating, analyzing, and visualizing complex networks and graphs in Python.
SkillDFreshness: DClaude Code +9
More from chenDeepin
- 0.403score
molfeat
chenDeepin
Molecular featurization for ML (100+ featurizers).
SkillDFreshness: DClaude Code +9 - 0.385score
find-skills
chenDeepin
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express…
SkillDFreshness: DClaude Code +9
Cite this page
networkx skill. Agent Mart. https://agentmart.dev/skills/chendeepin-networkx (last updated 2026-10-24)