networkx

Create, analyze, and visualize graph structures with networkx and matplotlib.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/ogngnaoh/scientific-agent-skills --skill networkx-ogngnaoh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: networkx
Source: https://github.com/ogngnaoh/scientific-agent-skills/tree/main/scientific-agent-skills/skills/networkx
Command: npx skills add https://github.com/ogngnaoh/scientific-agent-skills --skill networkx-ogngnaoh

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill enables users to create, analyze, and visualize complex graph structures efficiently, streamlining network-related workflows.

Core Features & Use Cases

  • Graph Construction and Manipulation: Build various graph types, add nodes and edges with attributes.
  • Graph Algorithm Execution: Compute shortest paths, centrality measures, community detection, and more.
  • Visualization: Generate clear network diagrams suitable for reports and presentations.
  • Use Case: Imagine you're analyzing social media connections; this skill can construct the network, identify key influencers, and visualize the community clusters with minimal effort.

Quick Start

Use the networkx skill to read a graph from a GraphML file named 'social_network.graphml' and compute the top 5 nodes with the highest betweenness centrality.

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 graph and identify key influencers?

To analyze a social network graph, you can construct the network structure and compute centrality measures to identify key influencers. This skill supports graph construction and algorithmic execution for social media connections to pinpoint important nodes.

What's the best way to visualize complex networks and community clusters?

The best way to visualize complex networks and community clusters is by using matplotlib rendering capabilities. This skill generates clear network diagrams suitable for reports, identifying community clusters with minimal effort.

Can I compute shortest paths and run graph algorithms on a GraphML file?

Yes, you can compute shortest paths and run graph algorithms on a GraphML file. The skill supports various file formats for data exchange and executes algorithmic computations like pathfinding directly on the imported graph structures.

Does this skill work with pandas and matplotlib for graph analysis?

Yes, this skill works with pandas and matplotlib for graph analysis. It depends on the networkx and matplotlib libraries to perform graph analysis and rendering, while supporting pandas for data manipulation workflows.

What types of graph structures can I build for biological systems and transportation mapping?

You can build various graph structures by adding nodes and edges with custom attributes for biological systems and transportation mapping. The skill facilitates graph construction and manipulation for these specific domains.

How do I find the top nodes with the highest betweenness centrality in a network?

To find the top nodes with the highest betweenness centrality, read your graph file and execute the centrality measure algorithm. The skill computes these metrics to rank nodes based on their network importance.