citation-network
/citation-network
Build and visualize a citation network from a source/target CSV to identify key papers, communities, and emerging hotspots; use when you have citation pairs and need fast literature review or trend analysis.
Assessment and security
- Files in this package
- 8
- Scripts
- 3
- HTML comments
- 0
- URLs in SKILL.md
- 2
No signals detected. Repository changed on 05.07.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 3 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: scripts/build_citation_network.py, scripts/export_gexf_html.py, scripts/init_run.py
What it does and when to use it
Build and visualize a citation network from a source/target CSV to identify key papers, communities, and emerging hotspots; use when you have citation pairs and need fast literature review or trend analysis.
Original author description
Build and visualize a citation network from a source/target CSV to identify key papers, communities, and emerging hotspots; use when you have citation pairs and need fast literature review or trend analysis.
How it works
- When to Use
- Key Features
- Dependencies
- Example Usage
- Implementation Details
SKILL.md preview
--- name: citation-network description: Build and visualize a citation network from a source/target CSV to identify key papers, communities, and emerging hotspots; use when you have citation pairs and need fast literature review or trend analysis. license: MIT author: aipoch --- > **Source**: [https://github.com/aipoch/medical-research-skills](https://github.com/aipoch/medical-research-skills) ## When to Use - You have a citation relationship table (who cites whom) and want to quickly turn it into a directed network for analysis. - You are conducting a literature review and need to identify influential papers (high in-degree / centrality) and core clusters. - You want to detect community structures (research subfields) and compare them across time or datasets. - You need an interactive, shareable visualization (HTML) or a Gephi-importable graph file (GEXF). - You are positioning a new project and want evidence of research hotspots and bridging papers between communities. ## Key Features - Builds a directed citation graph from a minimal CSV containing `source` and `target`. - De-duplicates nodes by identifier (DOI recommended; otherwise unique titles). - Exports: - `citation_network.gexf` for Gephi and other graph tools - `network_metrics.json` for basic network statistics - `citation_network.html` for interactive browser viewing (auto-generated by the build script) - Run-directory workflow to keep each execution reproducible and isolated under `outputs/runs/<timestamp>/`. - Optional input encoding control to avoid garbled characters (e.g., UTF-8 / UTF-8-SIG). ## Dependencies - Python 3.10+ - pandas >= 2.0 - networkx >= 3.0 - (Optional, for HTML visualization) pyvis >= 0.3 ## Example Usage ### 1) Initialize a run directory ```bash python scripts/init_run.py ``` This creates a new run folder: ```text outputs/runs/<timestamp>/ config.json data/ outputs/ ``` ### 2) Prepare the citation CSV (minimal) Create `citations.csv` and place it into: ```text outputs/runs/<timestamp>/data/citations.csv ``` Minimal CSV format: ```csv source,target Paper A,Paper B Paper A,Paper C ``` Recommended DOI-based identifiers: ```csv source,target 10.1234/abcd.1,10.1234/abcd.2 10.1234/abcd.1,10.1234/abcd.3 ``` ### 3) Confirm configuration Open: ```text outputs/runs/<timestamp>/config.json ``` Ensure the configured input filename and column names match your CSV (at minimum `source` and `target`). If you see garbled characters, set an explicit encoding (e.g., `utf-8` or `utf-8-sig`) via an `input_encoding` field if supported by the config. ### 4) Build the citation network ```bash python scripts/build_citation_network.py ``` The build script will also generate the HTML automatically (you do not need to run `scripts/export_gexf_html.py` manually). ### 5) Inspect outputs Expected outputs under the same run directory: - `citation_network.gexf` (import into Gephi) - `network_metrics.json` (node/edge counts, density, etc.) - `citation_network.html` (open in a browser) ## Implementation Details ### Data Model - **Nodes**: papers, identified by the value in `source`/`target` (DOI preferred; otherwise a unique, consistent title string). - **Edges**: directed citations `source -> target`. ### Input Requirements and Constraints - The network builder reads **only** the `source` and `target` columns. - Additional columns (e.g., author/year/venue) are ignored by the current scripts. - If you need metadata, maintain a separate table for downstream joining/annotation (not consumed by the builder), for example: ```csv id,title,authors,year,doi 10.1234/abcd.1,Paper A,"Zhang, Wei; Li, Ming",2021,10.1234/abcd.1 10.1234/abcd.2,Paper B,"Wang, Fang",2019,10.1234/abcd.2 ``` ### Run Directory Standard - Always run `python scripts/init_run.py` before an execution to create a new run directory. - All inputs, configs, and outputs must remain inside `outputs/runs/<timestamp>/`. - By default, scripts operate on the latest run directory under `outputs/runs/`. ### Metrics and Analysis (Conceptual) - Basic network statistics are exported to `network_metrics.json` (e.g., node/edge counts, density). - Typical downstream analyses include: - centrality (degree, betweenness) - community detection (e.g., Louvain), if enabled/implemented in the pipeline ### Common Failure Modes - **Garbled characters**: ensure CSV is UTF-8/UTF-8-SIG; set `input_encoding` in `config.json` if available. - **Duplicate nodes**: identical identifiers are treated as the same node; prefer DOIs or enforce unique titles. - **Empty or missing output**: verify the CSV header names match the configured `source`/`target` columns. ### Related References - Data cleaning checklist: `references/data-cleaning-checklist.md` - Network metrics notes: `references/network-metrics-notes.md` - Additional documentation: `references/README.md`
Files in this package (8)
- SKILL.md 5 KB
- citation-network_audit_result_v1.json 12 KB
- references/README.md 1 KB
- references/data-cleaning-checklist.md 1 KB
- references/network-metrics-notes.md 1 KB
- scripts/build_citation_network.py 6 KB
- scripts/export_gexf_html.py 5 KB
- scripts/init_run.py 2 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · zjunlp/skills | 100 | MIT |
| aipoch/medical-research-skills | 100 | MIT |
| navisbio/ops-patent-search-mcp | 84 | MIT |
Database snapshot: 13.11.2026 · package version 221b1aca4fc9 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100mogua
顺藤摸瓜学术文献引文网络与脉络挖掘技能(Mogua / Citation Snowballing)。当用户需要从一篇或多篇种子论文(DOI、URL 或论文标题)出发,“顺藤摸瓜”挖掘核心引文网络、梳理学术源流脉络、找上下游高相关文献、构建局部知识图谱、或提到“摸瓜”、“引文网络”、“滚雪球”、“文献脉络”、“connected papers”时使用。自动爬取真实引文数据,基于影响力(Citation/Year)与亲缘度(Jaccard 参考文献重叠度)双重算法筛选出核心文献骨架,并交付本地交互式网页图谱(HTML)、静态图(PNG/SVG)与结构化导读报告。 - 100alterlab-citation-graph
Free ResearchRabbit / Connected Papers analog — builds a citation and co-citation graph around one or more seed papers using the OpenAlex API. Walks both directions of the citation network (works the seed cites and works that cite the seed), ranks the discovered neighbourhood by… - 100literature-research
Use when the user wants to find related work, survey a research area, identify literature gaps, or discover open-source implementations. Triggers on phrases like "find papers on", "related work", "literature review", "what papers exist", "open source implementation", or "papers with code". - 100citation-analysis
Analyze citation networks, compute bibliometric indicators, and identify research fronts. Use when: user asks about citation patterns, h-index, co-authorship networks, research trends, or bibliometric analysis. NOT for: literature searching (use literature-search) or writing… - 100citation-context
Map a paper's citation network from a DOI, arXiv ID or exact title — backward references, forward citations, relevance ranking, co-citation clusters, a verifiable narrative and a single-file interactive HTML report. Use when asked "who cites this paper", "what does it build on",… - 100literature-review
Use when the user wants to draft a literature review, survey a research area, summarize a field, organize workspace papers, identify gaps, or export review references.