数据与复现科研绘图与可视化K-Dense-AI/claude-scientific-skills数据与复现
NE

NetworkX

维护者 K-Dense Inc. · 最近更新 2026年4月1日

NetworkX是一个Python package ,用于 creating,manipulating,、 analy。

Claude CodeOpenClawNanoClaw分析处理写作整理networkxdata-analysispackagedata analysis & visualization

原始来源

K-Dense-AI/claude-scientific-skills

https://github.com/K-Dense-AI/claude-scientific-skills/tree/main/scientific-skills/networkx

维护者
K-Dense Inc.
许可
3-clause BSD license
最近更新
2026年4月1日

技能摘要

来自 SKILL.md 的关键信息

2 min

核心说明

  • NetworkX是一个Python package ,用于 creating,manipulating,、 analyzing complex networks 、 graphs. Use this skill when working ,支持 network 或 graph data structures,,涵盖 social networks,biological networks,transportation systems,citation networks,knowledge graphs,或 any system involving relationships between entities。
  • G.add_node(1) G.add_nodes_from([2,3,4]) G.add_node("protein_A",type='enzyme',weight=1.5)。

原始文档

SKILL.md 摘录

When to Use This Skill

Invoke this skill when tasks involve:

  • Creating graphs: Building network structures from data, adding nodes and edges with attributes
  • Graph analysis: Computing centrality measures, finding shortest paths, detecting communities, measuring clustering
  • Graph algorithms: Running standard algorithms like Dijkstra's, PageRank, minimum spanning trees, maximum flow
  • Network generation: Creating synthetic networks (random, scale-free, small-world models) for testing or simulation
  • Graph I/O: Reading from or writing to various formats (edge lists, GraphML, JSON, CSV, adjacency matrices)
  • Visualization: Drawing and customizing network visualizations with matplotlib or interactive libraries
  • Network comparison: Checking isomorphism, computing graph metrics, analyzing structural properties

1. Graph Creation and Manipulation

NetworkX supports four main graph types:

  • Graph: Undirected graphs with single edges
  • DiGraph: Directed graphs with one-way connections
  • MultiGraph: Undirected graphs allowing multiple edges between nodes
  • MultiDiGraph: Directed graphs with multiple edges

Create graphs by:

import networkx as nx

## Add edges

G.add_edge(1, 2)
G.add_edges_from([(1, 3), (2, 4)])
G.add_edge(1, 4, weight=0.8, relation='interacts')

Reference: See references/graph-basics.md for comprehensive guidance on creating, modifying, examining, and managing graph structures, including working with attributes and subgraphs.

适用场景

  • **Creating graphs**:Building network structures ,面向 data,adding nodes 、 edges ,支持 attributes。
  • **Graph analysis**:Computing centrality measures,finding shortest paths,detecting communities,measuring 聚类。
  • **Graph algorithms**:Running standard algorithms like Dijkstra's,PageRank,minimum spanning trees,maximum flow。
  • **Network generation**:Creating synthetic networks (random,scale-free,small-world models) ,用于 testing 或 模拟。

不适用场景

  • Do not rely on this catalog entry alone ,用于 installation 或 maintenance details。
  • Do not treat this catalog entry as substitute ,用于 full upstream workflow。

相关技能

相关技能

返回目录
BI
数据与复现科研绘图与可视化

bio-de-visualization

bio-de-visualization:可视化 differential expression results ,使用 DESeq2/edgeR built-in functions。 Covers plotMA,plotDispEsts…

OpenClawNanoClaw分析处理
FreedomIntelligence/OpenClaw-Medical-Skills查看
BI
数据与复现科研绘图与可视化

bio-pathway-enrichment-visualization

bio-pathway-enrichment-visualization:可视化 enrichment results ,使用 enrichplot package functions。 Covers dotplot,barplot,cne…

OpenClawNanoClaw分析处理
FreedomIntelligence/OpenClaw-Medical-Skills查看
BI
数据与复现科研绘图与可视化

bio-pathway-reactome

bio-pathway-reactome:Reactome pathway enrichment ,使用 ReactomePA package。 执行 over-representation analysis 、 GSEA ,支持 visu…

OpenClawNanoClaw分析处理
FreedomIntelligence/OpenClaw-Medical-Skills查看
BI
数据与复现科研绘图与可视化

bio-reporting-figure-export

bio-reporting-figure-export:Export 论文级图表 in PDF/SVG/TIFF at specified DPI。

OpenClawNanoClaw分析处理
FreedomIntelligence/OpenClaw-Medical-Skills查看