networkx
Analyze and visualize complex networks with NetworkX
Also available from: davila7
Working with graph and network data requires specialized tools for creating structures, computing algorithms, and generating visualizations. This skill provides comprehensive access to NetworkX capabilities for social network analysis, biological pathway mapping, transportation optimization, and relationship modeling.
Download the skill ZIP
Upload in Claude
Go to Settings → Capabilities → Skills → Upload skill
Toggle on and start using
Test it
Using "networkx". Create a graph showing connections between team members
Expected outcome:
- Graph created with 8 nodes representing team members
- Edges added for direct reporting relationships
- Nodes labeled with team member names
- Drawn with circular layout for clarity
Using "networkx". Find the most central nodes in a citation network
Expected outcome:
- Betweenness centrality computed for all 50 nodes
- Top 5 most central papers identified with scores
- Results saved to centrality_results.csv
- Visualization shows node size by centrality value
Security Audit
SafeThis is a documentation-only skill containing markdown files for the NetworkX Python library. All 495 static findings are FALSE POSITIVEs. The analyzer misinterprets markdown code fences as shell execution, NetworkX function names as cryptographic algorithms, and graph operations as system reconnaissance. No executable code exists. All URLs point to official NetworkX documentation.
Risk Factors
⚙️ External commands (349)
📁 Filesystem access (7)
🌐 Network access (5)
Quality Score
What You Can Build
Social network analysis
Analyze relationship patterns, identify influencers, and detect communities in social media data
Biological pathway mapping
Model protein interactions, gene regulatory networks, and metabolic pathways
Transportation optimization
Optimize route planning, supply chain networks, and infrastructure design
Try These Prompts
Create a graph with 5 nodes and add edges between them to represent a basic network structure
Find the shortest path between node A and node F in this graph and show the distance
Compute betweenness centrality for all nodes and identify which nodes are most critical
Generate a Barabasi-Albert scale-free network with 100 nodes and 3 edges per new node
Best Practices
- Set random seeds (seed=42) for reproducible random graph generation and force-directed layouts
- Use sparse matrix formats and appropriate data structures when working with large networks
- Save graphs in GraphML format to preserve node and edge attributes
Avoid
- Using floating-point numbers as node identifiers can cause precision issues in algorithms
- Loading entire large networks when only subgraph analysis is needed wastes memory
- Forgetting to check graph connectivity before running algorithms that require connected graphs
Frequently Asked Questions
What graph types does NetworkX support?
How do I read a graph from a CSV file?
What is the fastest way to find shortest paths?
Can NetworkX handle directed acyclic graphs?
How do I detect communities in a network?
What visualization libraries work with NetworkX?
Developer Details
Author
K-Dense-AILicense
3-clause BSD license
Repository
https://github.com/K-Dense-AI/claude-scientific-skills/tree/main/scientific-skills/networkxRef
main
File structure