networkx

Build and analyze complex networks with NetworkX graph metrics.

4|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/shushuzn/Rairos --skill networkx-shushuzn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: networkx
Source: https://github.com/shushuzn/Rairos/tree/main/skills/networkx
Command: npx skills add https://github.com/shushuzn/Rairos --skill networkx-shushuzn

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you turn messy, relationship-heavy data into structured graphs so you can compute insights like centrality, connectivity, communities, and paths instead of reasoning manually.

Core Features & Use Cases

  • Build graph models: Create undirected, directed, and multigraphs with rich node/edge attributes from real-world relationship data.
  • Run core network analysis: Compute shortest paths, centrality metrics, clustering, community detection, and connectivity/flow-related properties.
  • Generate and compare networks: Create synthetic graphs (random, scale-free, small-world, bipartite, DAGs, etc.) and export/import across common formats.
  • Visualize topology and results: Produce publish-ready static visuals and interactive network views using standard plotting approaches.

Quick Start

Use the networkx skill to analyze a citation network by loading your edge list, computing shortest paths and PageRank, then producing a visualization that highlights the most influential papers.

Frequently Asked Questions about networkx

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

FAQPage Schema
How do I compute centrality and shortest paths for a complex graph?

To compute centrality and shortest paths for a complex graph, you create graph structures from relationship data and execute network analysis algorithms. This yields quantifiable metrics like connectivity, flow, and node influence without manual reasoning.

What is the best way to detect communities in a social network?

Detecting communities in a social network involves modeling the interactions as a graph structure and applying community detection algorithms. This partitions the network into densely connected groups, revealing underlying structural clusters within the relationship data.

Can I analyze biological or transportation networks using Python?

Yes, you can analyze biological or transportation networks by creating undirected or directed graph models from your entity relationship data. The process computes structural metrics like clustering and shortest paths specifically tailored to these complex network scenarios.

How do I import and export GraphML files for network analysis?

To import and export GraphML files for network analysis, you use file I/O operations that support common graph formats. This allows you to load existing network topologies, compute metrics, and save the updated graph structures with rich node and edge attributes.

How do I visualize a citation network and highlight influential papers?

To visualize a citation network and highlight influential papers, you load your edge list, compute centrality metrics like PageRank, and generate static or interactive visuals. This produces publish-ready topology views emphasizing the most connected nodes.

Does this approach support generating synthetic scale-free and small-world graphs?

Yes, this approach supports generating synthetic graphs including scale-free, small-world, bipartite, and DAG structures. You can create these random network models to compare topological properties against your real-world relationship data.