networkx

Create, analyze, and visualize complex networks with Python and NetworkX.

38|7|Updated Jun 21, 2026
One-click install
npx skills add https://github.com/lamm-mit/ScienceSkills --skill networkx-lamm-mit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: networkx
Source: https://github.com/lamm-mit/ScienceSkills/tree/main/skills/networkx
Command: npx skills add https://github.com/lamm-mit/ScienceSkills --skill networkx-lamm-mit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires networkx, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill allows users to create, analyze, and visualize complex networks and graphs, enabling them to understand relationships and patterns in data.

Core Features & Use Cases

  • Graph Creation and Manipulation: Build and modify various graph types (undirected, directed, multigraphs).
  • Graph Analysis: Compute shortest paths, centrality measures, detect communities, and more.
  • Graph Algorithms: Run algorithms like Dijkstra's, PageRank, minimum spanning trees, and maximum flow.
  • Network Generation: Create synthetic networks for testing and simulation.
  • Graph I/O: Read and write various graph file formats.
  • Visualization: Draw and customize network visualizations.
  • Use Case: A researcher wants to analyze a social network's structure. They can use this Skill to visualize the network, compute centrality measures, and detect communities.

Quick Start

Use the networkx skill to visualize the degree centrality of the nodes in the graph defined in 'social_network.gml'.

Frequently Asked Questions about networkx

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

FAQPage Schema
How do I compute centrality measures for social network analysis?

Network visualization of complex networks is achieved by applying graph algorithms to draw and customize node-link structures. This Skill generates visual outputs from graph data to help you understand relationships and patterns across social, biological, or transportation systems.

Can I detect communities in a complex network graph?

You can detect communities in a complex network graph using the Skill's built-in graph algorithms. It applies community detection techniques to partition nodes, allowing you to identify clustered groups and substructures within your network data.

What is the best way to find shortest paths in a transportation network?

Finding shortest paths in a transportation network is best handled by applying algorithms like Dijkstra's to your graph structure. This Skill computes optimal routes and path lengths to solve navigation and connectivity problems efficiently.

Does this network analysis tool support directed and undirected graphs?

This network analysis tool supports directed, undirected, and multigraph structures. You can build and manipulate various graph types to accurately model complex relationships, whether the network connections are bidirectional or strictly one-way.

How do I import and export graph file formats like GML?

To import and export graph file formats like GML, you can use the Skill's graph I/O capabilities. It reads and writes various standard graph file formats, enabling seamless data exchange and persistence for your network analysis workflows.

Do I need Python to run graph algorithms like PageRank?

You need Python and the NetworkX library installed to run graph algorithms like PageRank. This Skill serves as an interface to apply these algorithms, requiring the Python environment to execute maximum flow and minimum spanning tree calculations.