Skip to content
Back to skills

Subgraph2vec Eval

ASecurity

Evaluates the quality of distributed subgraph representations learned by subgraph2vec on graph classification and clustering tasks. It probes the model's ability to capture structural and semantic similarities in chemical/biological graphs and Android application control-flow graphs. Use when the user wants to benchmark on MUTAG, PTC, PROTEINS, NCI1, NCI109, CLONE260, TRAIN10K, TEST10K, or asks about evaluating this task. Reports Accuracy.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 11, 2026
researchpythongonodeapiperformance

Works with

  • api

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add qhjqhj00/research-skills-pool --skill subgraph2vec-eval --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Subgraph2vec Eval?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Subgraph2vec Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-subgraph2vec-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-subgraph2vec-eval)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: subgraph2vec-eval
description: Evaluates the quality of distributed subgraph representations learned by subgraph2vec on graph classification and clustering tasks. It probes the model's ability to capture structural and semantic similarities in chemical/biological graphs and Android application control-flow graphs. Use when the user wants to benchmark on MUTAG, PTC, PROTEINS, NCI1, NCI109, CLONE260, TRAIN10K, TEST10K, or asks about evaluating this task. Reports Accuracy.
metadata:
  skill_kind: dataset_eval
  source_arxiv: 1606.08928
  bibtex_key: [REDACTED]
  confidence: high
---

# subgraph2vec-eval

> subgraph2vec: Learning Distributed Representations of Rooted Sub-graphs from Large Graphs — Narayanan et al. (2016) (arXiv:1606.08928, 2016)

## What this evaluates

Evaluates the quality of distributed subgraph representations learned by subgraph2vec on graph classification and clustering tasks. It probes the model's ability to capture structural and semantic similarities in chemical/biological graphs and Android application control-flow graphs.

## Datasets

- **MUTAG** — total 188; splits: train (-1), test (-1)
- **PTC** — total 344; splits: train (-1), test (-1)
- **PROTEINS** — total ?; splits: train (-1), test (-1)
- **NCI1** — total ?; splits: train (-1), test (-1)
- **NCI109** — total ?; splits: train (-1), test (-1)
- **CLONE260** — total 260; splits: all (260)
- **TRAIN10K** — total 10000; splits: train (10000)
- **TEST10K** — total 10000; splits: test (10000)

## Metrics

- `Accuracy` **(primary)** — range: [0, 1]
  - Proportion of correctly classified graphs out of the total test set. Reported as mean ± standard deviation over 5 random train/test splits.
- `Adjusted Rand Index (ARI)` — range: [-1, 1]
  - Standard clustering evaluation metric measuring the similarity between predicted cluster assignments and ground-truth clusters, adjusted for chance.

## Input / output format

**Input**: Graphs represented as adjacency structures or Inter-procedural Control Flow Graphs (ICFGs) with nodes labeled by Android APIs or chemical structures.

**Output**: Class labels (e.g., mutagenic/benign, enzyme/non-enzyme, malware/benign) or cluster assignments for each graph.

## Scoring recipe

```python
def compute_accuracy(preds, gold):
    return sum(1 for p, g in zip(preds, gold) if p == g) / len(gold)

def compute_ari(pred_clusters, gold_clusters):
    from sklearn.metrics import adjusted_rand_score
    return adjusted_rand_score(gold_clusters, pred_clusters)

# For benchmarks: repeat 5 times with 90/10 split, average accuracy.
# For clone detection: compute ARI on full dataset clustering.
```

## Common pitfalls

- Benchmark datasets like MUTAG/NCI can be solved with trivial features (e.g., node count), so they do not fully test real-world performance.
- Pre-training duration is reported alongside accuracy, but efficiency comparisons should account for different kernel computation costs and dataset sizes.
- The clone detection task is unsupervised clustering; ground-truth clusters must strictly match the 100 sets identified by the original dataset authors.

## Evidence (verbatim from paper)

> The experiment is repeated 5 times and the average accuracy (along with std. dev.) is used to determine the effectiveness of classification. A standard clustering evaluation metric, namely, Adjusted Rand Index (ARI) is used to determine clone detection accuracy. The ARI values lie in the range [-1, 1].

## Citation

```bibtex
@misc{narayanan2016subgraph2vec,
  title={subgraph2vec: Learning Distributed Representations of Rooted Sub-graphs from Large Graphs},
  author={Narayanan et al. (2016)},
  year={2016},
  note={arXiv:1606.08928}
}
```

- arXiv: 1606.08928

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.