SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1907.00481 · 2019

Spectral Clustering with Graph Neural Networks for Graph Pooling

arXiv · PDF · Open in the Atlas

Code that ran

3 of 9 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 1 failure of our instrument; 6 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/1907.00481.json · badge: /api/ran/1907.00481.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
FilippoMB/Spectral-Clustering-with-Graph-Neural-Networks-for-Graph-Pooling canonical (classifier label)
classifier basis: census
2 ran · 4 no recorded run
hustwutao/Deep-Clustering community (classifier label)
classifier basis not recorded on the link
1 ran · 2 no recorded run
FunctionStatusWhere it lives
create_batch Ran
ran on a synthesized input
FilippoMB/Spectral-Clustering-with-Graph-Neural-Networks-for-Graph-Pooling/Graph_Classification.py
code served (permissive licence) · get_code("0de9bc2db1425653")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import scipy.sparse as sp

# Create small sparse matrices for A_list
# Each matrix should be square (graph adjacency matrices)
A1 = sp.csr_matrix(np.array([[0, 1], [1, 0]]))  # 2x2 adjacency matrix
A2 = sp.csr_matrix(np.array([[0, 1, 1], [1, 0, 1], [1, 1, 0]]))  # 3x3 adjacency matrix

A_list = [A1, A2]

# Create feature matrices for X_list
# X1 should have 2 rows (matching A1's 2 nodes) and some feature dimension
# X2 should have 3 rows (matching A2's 3 nodes) and same feature dimension
X1 = np.array([[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0]])  # 2x4
X2 = np.array([[9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0], [17.0, 18.0, 19.0, 20.0]])  # 3x4

X_list = [X1, X2]

ARGS = {
    "A_list": A_list,
    "X_list": X_list,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
make_dirs Ran
ran on a synthesized input
hustwutao/Deep-Clustering/DEC/utils.py
code served (permissive licence) · get_code("139333529df87241")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import tempfile

# Create a temporary directory path for testing
temp_dir = tempfile.mkdtemp()
test_dir = os.path.join(temp_dir, "test_subdir", "nested_path")

ARGS = {
    "dir": test_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
preprocess_features Ran
ran; our contract draft was wrong, not the code
FilippoMB/Spectral-Clustering-with-Graph-Neural-Networks-for-Graph-Pooling/utils/citation.py
code served (permissive licence) · get_code("e0296fe1142b4a69")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned csr_matrix. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import scipy.sparse as sp

# Create a small sparse matrix as features
# Using a 3x4 sparse matrix (3 samples, 4 features)
rows = np.array([0, 1, 2, 0, 2])
cols = np.array([0, 1, 2, 3, 3])
data = np.array([1.0, 2.0, 3.0, 4.0, 5.0])
features = sp.csr_matrix((data, (rows, cols)), shape=(3, 4))

ARGS = {
    "features": features
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type csr_matrix — a csr_matrix output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a csr_matrix output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
acc Not yet run
unverified (harvested, no recorded run)
hustwutao/Deep-Clustering/AE_clustering/metrics.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from xiaopeng-liao/DEC_pytorch, is pointer only (licence: NONE) · get_code("df1f11dcac8d2a95")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from xiaopeng-liao/DEC_pytorch, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

data_loader Not yet run
unverified (harvested, no recorded run)
hustwutao/Deep-Clustering/DEC/utils.py
code served (permissive licence) · get_code("b799b125efb60c2a")
How it ran

no invocation recorded.

node_feat_norm Not yet run
unverified (harvested, no recorded run)
FilippoMB/Spectral-Clustering-with-Graph-Neural-Networks-for-Graph-Pooling/utils/misc.py
code served (permissive licence) · get_code("7182346429ad0da2")
How it ran

no invocation recorded.

read_graphs_txt Not yet run
unverified (harvested, no recorded run)
FilippoMB/Spectral-Clustering-with-Graph-Neural-Networks-for-Graph-Pooling/utils/dataset_loader.py
code served (permissive licence) · get_code("83966fa7ecf36402")
How it ran

no invocation recorded.

sp_matrix_to_sp_tensor Not yet run
unverified (harvested, no recorded run)
FilippoMB/Spectral-Clustering-with-Graph-Neural-Networks-for-Graph-Pooling/utils/misc.py
code served (permissive licence) · get_code("c4e9903f579ce7de")
How it ran

no invocation recorded.

sp_matrix_to_sp_tensor_value Not yet run
unverified (harvested, no recorded run)
FilippoMB/Spectral-Clustering-with-Graph-Neural-Networks-for-Graph-Pooling/utils/misc.py
code served (permissive licence) · get_code("8c0a581cc58adf11")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 2 later) and 7 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
acc 2 other papers
1 dated earlier, 1 later
1511.06335 (2015-11)
Unsupervised Deep Embedding for Clustering Analysis
2603.26746 (2026-03)
TDEC: Deep Embedded Image Clustering with Transformer and Distribution Information
preprocess_features 2 other papers
1 dated earlier, 1 later
1905.13403 (2019-05)
Deep Bayesian Optimization on Attributed Graphs
2607.08219 (2026-07)
Benchmark Evaluation of Federated Learning on Multi-organ Images

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Spectral clustering (SC) is a popular clustering technique to find strongly connected communities on a graph. SC can be used in Graph Neural Networks (GNNs) to implement pooling operations that aggregate nodes belonging to the same cluster. However, the eigendecomposition of the Laplacian is expensive and, since clustering results are graph-specific, pooling methods based on SC must perform a new optimization for each new sample. In this paper, we propose a graph clustering approach that addresses these limitations of SC. We formulate a continuous relaxation of the normalized minCUT problem and train a GNN to compute cluster assignments that minimize this objective. Our GNN-based implementation is differentiable, does not require to compute the spectral decomposition, and learns a clustering function that can be quickly evaluated on out-of-sample graphs. From the proposed clustering method, we design a graph pooling operator that overcomes some important limitations of state-of-the-art graph pooling techniques and achieves the best performance in several supervised and unsupervised tasks.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("1907.00481")
get_code_for_paper("1907.00481")
have("1907.00481")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/1907.00481.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/1907.00481.svg)](https://syntology.ai/paper/1907.00481)

Connect an agent — have() is free.