Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

networkx

Skill by K-Dense-AI

Creates, analyzes and visualizes complex networks and graphs in Python with NetworkX. It covers algorithms, synthetic network generators, file I/O and drawing. Built for researchers and developers working with network data.

  • Score 94
  • 59k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install networkx

Built from the published package, never by AI.

git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills /tmp/scientific-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/scientific-agent-skills/skills/networkx ~/.claude/skills/networkx

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install networkx in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

NetworkX is a Python package skill for creating, manipulating and analyzing complex networks and graphs. It covers four graph types: Graph, DiGraph, MultiGraph and MultiDiGraph. The skill points to reference files for shortest paths, centrality, community detection, random and scale-free generators, file formats and visualization. Its examples use NumPy, SciPy, pandas and Matplotlib.

The skill targets tested NetworkX 3.7 on Python 3.12 or later, excluding 3.14.1. It notes that centrality depends on the observed graph and weight model, and that community partitions are not significance tests. Several pre-3.0 APIs were removed and replaced in this version. The source lists social, biological, transportation and citation networks as common applications.

Written from the project's SKILL.md and checked against it.

What it can do

  • Graph creationBuild graphs with nodes, edges and attributes, using four graph classes.
  • Graph algorithmsCompute shortest paths, centrality, PageRank, connectivity and community detection.
  • Graph generatorsCreate classic, random and grid networks such as Erdős-Rényi and Barabási-Albert graphs.
  • Reading and writing graphsImport and export edge lists, GraphML, GML, JSON, pandas and matrix formats.
  • VisualizationDraw networks with layout algorithms, custom colors and sizes, and save PNG or PDF files.

What you need

  • Python 3.12 or later, excluding 3.14.1
  • NetworkX 3.7
  • Optional NumPy, SciPy, pandas and Matplotlib for examples
  • Network access only for installation or remote data

Try asking

  • Find the most central nodes in this social network graph.
  • Generate a Barabási-Albert scale-free network with 100 nodes.
  • Detect communities in my citation graph and save the results to CSV.

Good to know

  • Reference snippets are API patterns, not one sequential script.
  • Community partitions optimize a chosen objective and are not significance tests.
  • Converting a configuration multigraph to a simple graph changes its degree sequence.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/networkx/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md17 KB
  • references/algorithms.md13 KB
  • references/generators.md10 KB
  • references/graph-basics.md8 KB
  • references/io.md15 KB
Show all 7 files
  • references/review.md6 KB
  • references/visualization.md14 KB

Alternatives to networkx

All alternatives →
kaggle-cliKaggle
94

Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.

AAA Skill 7.7k
bigquery-bigframesgoogle
94

Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.

AAA Skill 25k
data-loadingmicrosoft
94

Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.

AAA Skill 18k
data-manager-api-setupgoogle
94

Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.

AAA Skill 25k
managed-airflow-dag-authoringgoogle
94

Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.

AAA Skill 25k
data-feedsdavila7
94

Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.

AAA Skill 34k

Compare with kaggle-cli, bigquery-bigframes or data-loading

networkx: common questions

Which Python version does NetworkX need here?

The skill targets Python 3.12 or later, excluding 3.14.1, with NetworkX 3.7.

Does it need API keys or credentials?

The source states no credentials are needed. Network access is only needed for installation or remote data.

Can it draw network graphs?

Yes. It covers drawing with Matplotlib, several layout algorithms and saving figures as PNG or PDF.

How do I install networkx?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is networkx free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is networkx safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to networkx?

Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.

networkx Install

Add to stack

Loading.