networkx

Create, analyze, and visualize graphs and networks in Python using NetworkX.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

NetworkX provides a comprehensive toolkit for creating, manipulating, and analyzing complex networks and graphs in Python, enabling researchers and engineers to model relationships, run algorithms, and derive insights from network structures.

Core Features & Use Cases

  • Graph creation, manipulation, and attribute handling for Graph, DiGraph, MultiGraph, and MultiDiGraph.
  • A rich set of algorithms including shortest paths, centrality measures, clustering, connectivity, and community detection, plus robust I/O and visualization support.
  • Use Case: Analyze a social or biological network to identify key nodes, communities, and the overall topology, then visualize results for reporting.

Quick Start

Create a simple graph with a few nodes and edges, compute a few basic metrics, and visualize it.

Frequently Asked Questions about networkx

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

FAQPage Schema
How do I analyze a social network to identify key nodes and communities in Python?

To analyze a social network in Python, you can build a graph structure and apply centrality measures to identify key nodes and run community detection algorithms to cluster the network topology. This skill provides these NetworkX utilities for comprehensive network analysis.

What Python graph algorithms are available for finding shortest paths and calculating centrality?

Available Python graph algorithms include shortest path calculations, centrality measures, clustering, and connectivity analysis. These graph algorithms allow you to derive structural insights and compute metrics directly from complex network data.

How do I create and visualize directed and undirected graphs using Python?

To create and visualize graphs in Python, you can initialize structures like Graph, DiGraph, MultiGraph, or MultiDiGraph, add nodes and edges, and then use built-in visualization utilities to plot the resulting network topology.

Can I use NetworkX for modeling biological networks and infrastructure relationships?

Yes, NetworkX is suitable for modeling biological networks and infrastructure relationships. It provides flexible graph creation and manipulation tools to represent complex relationship structures and run algorithms across diverse data science domains.

What is the best way to handle graph I/O and export network analysis results in Python?

The best way to handle graph I/O is using built-in NetworkX functions to read and write various graph formats. This allows you to persist network structures, load external relationship data, and prepare analysis outputs for reporting.