networkx

Build, analyze, and visualize graphs using NetworkX APIs.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

NetworkX provides a comprehensive toolkit for creating, manipulating, analyzing, and visualizing complex networks and graphs in Python, enabling users to work with networked data, compute graph algorithms, and generate visual representations to understand relationships and flows.

Core Features & Use Cases

  • Creating and manipulating graphs (Graph, DiGraph, MultiGraph, MultiDiGraph) and attaching attributes to nodes and edges
  • Running graph algorithms (shortest paths, centrality measures, clustering, communities, flows) and performing network generation (synthetic graphs)
  • Reading/writing graphs across formats (GraphML, GML, JSON, edge lists, adjacency matrices; Pandas integration)
  • Visualization and analysis for domains like social networks, biology, transportation, knowledge graphs

Quick Start

Create a simple undirected graph with a few nodes and edges, then compute a shortest path between two nodes and visualize the result.

Frequently Asked Questions about networkx

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

FAQPage Schema
How do I build and analyze a network graph in Python?

To build and analyze a network graph in Python, you can create graph structures, attach attributes to nodes and edges, and compute graph algorithms like shortest paths and centrality measures using NetworkX APIs.

What types of graph structures can I create for network analysis?

For network analysis, you can create undirected graphs, directed graphs, and multi-graphs supporting parallel edges, while attaching custom attributes to nodes and edges to model complex relationships.

Can I read and write graph data using Pandas and edge list formats?

Yes, you can read and write graph data using Pandas integration, edge lists, adjacency matrices, and standard formats like GraphML, GML, and JSON to import or export network data.

What is the best way to visualize social network data and find communities?

The best way to visualize social network data and find communities is to generate the network structure, run community detection and clustering algorithms, and render the graph to understand relationships and flows.

Does NetworkX support graph algorithms for transportation and biology networks?

Yes, NetworkX supports graph algorithms for transportation and biology networks, offering shortest path calculations, centrality measures, clustering, and flow analysis tailored for these specific domains.

How do I generate synthetic graphs for testing network algorithms?

You can generate synthetic graphs for testing network algorithms by using built-in network generation functions to create random graph structures, allowing you to validate algorithm behavior before applying it to real data.