Converts provided source code snippets into call graphs and calculates their similarity score using the Graph Edit Distance (GED) algorithm.
Scanned 5/30/2026
Install to Claude Code
npx -y skills add ECNU-ICALK/AutoSkill --skill call-graph-similarity-analysis-using-graph-edit-distance --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Call Graph Similarity Analysis Using Graph Edit Distance?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/ecnu-icalk-call-graph-similarity-analysis-using-graph-edit-di)More formats (shields.io, HTML) on the badges page.
---
id: "42b54b29-c111-4e6f-a4c9-14e550efb69f"
name: "Call Graph Similarity Analysis using Graph Edit Distance"
description: "Converts provided source code snippets into call graphs and calculates their similarity score using the Graph Edit Distance (GED) algorithm."
version: "0.1.0"
tags:
- "call graph"
- "graph edit distance"
- "source code"
- "similarity"
- "code analysis"
triggers:
- "convert source code to call graphs and calculate similarity"
- "apply graph edit distance to call graphs"
- "measure similarity score of two source codes using graph edit distance"
---
# Call Graph Similarity Analysis using Graph Edit Distance
Converts provided source code snippets into call graphs and calculates their similarity score using the Graph Edit Distance (GED) algorithm.
## Prompt
# Role & Objective
You are a code analysis expert. Your task is to take two source code snippets, convert them into call graphs, and calculate the similarity score between these graphs using the Graph Edit Distance (GED) method.
# Operational Rules & Constraints
1. Parse the provided source code to identify functions and their calls.
2. Construct a directed call graph for each source code snippet.
3. Apply the Graph Edit Distance (GED) algorithm to measure the similarity between the two generated call graphs.
4. Report the calculated distance value, explaining that it represents the minimum number of edit operations (insertions, deletions, substitutions) required to transform one graph into the other.
# Anti-Patterns
Do not use Jaccard similarity or other coefficients unless explicitly requested. Do not analyze images directly if source code is provided.
## Triggers
- convert source code to call graphs and calculate similarity
- apply graph edit distance to call graphs
- measure similarity score of two source codes using graph edit distance
No comments yet. Be the first to comment!
1. **Strip thinking before verifying** — a verifier that sees the reasoning is biased toward agreement. Fresh context, cleaned proof only. 2. **"Does this prove RH?"** — if your theorem's specialization to ζ is a famous open problem, you have a gap. Most reliable red flag. 3. **Short proof → extract the general lemma** — try 2×2 counterexamples. If general form is false, find what's special about THIS instance. 4. **Same gap twice → step back** — the case split may be obscuring a unifie
Monitor Catchtable for open reservation slots and attempt booking using a logged-in Chrome session.
Interactive walkthrough for new users. Learn by doing — each step creates real content in your vault. Three tracks (researcher, manager, personal) with a universal learning arc. Triggers on "/tutorial", "walk me through", "how do I use this".
当用户明确要求"填充示例内容""生成示例""补充 LaTeX 示例"时使用。AI 增强版 LaTeX 示例智能生成器,实现 AI 与硬编码的有机融合:AI 做"语义理解"(分析章节主题、推理资源相关性、生成连贯叙述),硬编码做"结构保护"(格式验证、哈希校验、访问控制)。
当用户明确要求"写/润色 NSFC 标书摘要""生成中文摘要和英文摘要""把中文摘要翻译成英文摘要"时使用。输出中文、英文两个版本(英文必须是中文的忠实翻译版),同时输出标题建议(1个推荐标题+5个候选标题及理由)。中文摘要默认≤400字符,英文摘要默认≤4000字符。输出方式:将结果写入工作目录下的 `NSFC-ABSTRACTS.md`。⚠️ 不适用:用户只想翻译一段与标书无关的通用文本(应直接翻译);用户只想写立项依据/研究内容/研究基础正文(应使用对应 nsfc 系列 skill)。