SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2306.08274 · 2023

A Simple and Scalable Graph Neural Network for Large Directed Graphs

arXiv · PDF · Open in the Atlas

Code that ran

10 of 13 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 5 have no contract verdict; 5 failures of our instrument; 3 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/2306.08274.json · badge: /api/ran/2306.08274.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
seijimaekawa/a2dug canonical (classifier label)
classifier basis: census
10 ran · 3 no recorded run
FunctionStatusWhere it lives
calc_metric Ran
ran on a synthesized input
seijimaekawa/a2dug/src/utils_general.py
code served (permissive licence) · get_code("e53379e7b3dfd8c5")
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 dict. 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

# Set random seed for reproducibility
np.random.seed(0)

# Create sample data for the function parameters

# out_tmp: predicted class labels (1D array of integers)
out_tmp = np.array([0, 1, 0, 1, 1, 0])

# label_tmp: true labels (can be 1D or 2D one-hot encoded)
# Using 2D one-hot encoded labels to test the argmax branch
label_tmp = np.array([
    [1, 0],
    [0, 1],
    [1, 0],
    [0, 1],
    [0, 1],
    [1, 0]
])

# out_AUC: probability outputs for AUC calculation
# Shape should be (n_samples, 2) for binary classification
out_AUC = np.array([
    [0.9, 0.1],
    [0.2, 0.8],
    [0.8, 0.2],
    [0.3, 0.7],
    [0.1, 0.9],
    [0.85, 0.15]
])

ARGS = {
    "out_tmp": out_tmp,
    "label_tmp": label_tmp,
    "out_AUC": out_AUC
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
cheb_poly Ran
ran on a synthesized input
seijimaekawa/a2dug/src/hermitian.py
code served (permissive licence) · get_code("8a8364667e96b5a8")
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 ndarray, ndim 3, dtype family float, shape (3, 4, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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

# Create a small adjacency matrix A
# The function uses A.shape[0] to get N, and performs matrix operations
# We'll create a 4x4 adjacency matrix (small but valid for graph operations)
A = np.array([
    [0.0, 1.0, 0.0, 1.0],
    [1.0, 0.0, 1.0, 0.0],
    [0.0, 1.0, 0.0, 1.0],
    [1.0, 0.0, 1.0, 0.0]
], dtype=np.float32)

# K is the order parameter - using a small value
K = 2

ARGS = {
    "A": A,
    "K": K
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family float, shape (3, 4, 4) — shape (3, 4, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
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
decomp Ran
ran on a synthesized input
seijimaekawa/a2dug/src/hermitian.py
code served (permissive licence) · get_code("e0d3510a22e03470")
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

# Create a small adjacency matrix (4x4)
A = np.array([
    [0, 1, 1, 0],
    [1, 0, 1, 1],
    [1, 1, 0, 1],
    [0, 1, 1, 0]
], dtype=float)

# Define all arguments
ARGS = {
    "A": A,
    "q": 0.5,
    "norm": True,
    "laplacian": True,
    "max_eigen": None,
    "gcn_appr": False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — 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
encode_onehot Ran
ran on a synthesized input
seijimaekawa/a2dug/src/utils_general.py
code served (permissive licence) · get_code("8f0f3f9102b8868f")
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 Tensor, ndim 2, dtype family float, shape (4, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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 torch

torch.manual_seed(0)

# labels: a tensor of class indices, shape (batch_size,)
# num_classes: an integer representing the number of classes
labels = torch.tensor([0, 2, 1, 3])
num_classes = 4

ARGS = {
    "labels": labels,
    "num_classes": num_classes,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (4, 4) — shape (4, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
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
hermitian_decomp Ran
ran on a synthesized input
seijimaekawa/a2dug/src/hermitian.py
code served (permissive licence) · get_code("723d27760d2af154")
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 torch

torch.manual_seed(0)

# Create a small batch of adjacency matrices
# Shape: (2, 4, 4) - batch of 2 matrices, each 4x4
As = np.array([
    [[0, 1, 0, 1],
     [1, 0, 1, 0],
     [0, 1, 0, 1],
     [1, 0, 1, 0]],
    [[0, 1, 1, 0],
     [1, 0, 0, 1],
     [1, 0, 0, 1],
     [0, 1, 1, 0]]
], dtype=float)

ARGS = {
    "As": As,
    "q": 0.25,
    "norm": False,
    "laplacian": True,
    "max_eigen": None,
    "gcn_appr": False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — 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
normalize_string Ran
ran; our contract draft was wrong, not the code
seijimaekawa/a2dug/src/layers.py
code served (permissive licence) · get_code("ff7d55c8c0dd7dde")
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) 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 torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "s": "Hello-World_Test String"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — 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
rand_train_test_idx Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
seijimaekawa/a2dug/src/data_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from CUAI/Non-Homophily-Large-Scale, is pointer only (licence: NONE) · get_code("13234652741e2264")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from CUAI/Non-Homophily-Large-Scale, 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. A run is recorded.

sparse_mx_to_torch_sparse_tensor Ran
ran; our contract draft was wrong, not the code
seijimaekawa/a2dug/src/process_spmm_dire.py
code served (permissive licence) · get_code("c97b99c4e8201a97")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned Tensor. 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 torch
from scipy.sparse import csr_matrix

torch.manual_seed(0)

# Create a small sparse matrix using scipy
# Make it 3x4 to have distinct dimensions
row = np.array([0, 0, 1, 2, 2])
col = np.array([0, 2, 1, 0, 3])
data = np.array([1.5, 2.3, 3.7, 4.2, 5.1])
sparse_mx = csr_matrix((data, (row, col)), shape=(3, 4))

ARGS = {
    'sparse_mx': sparse_mx
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
numpy, scipy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, shape (3, 4) — shape (3, 4) as a later run recorded it
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
swish Ran
ran; our contract draft was wrong, not the code
seijimaekawa/a2dug/src/layers.py
code served (permissive licence) · get_code("3a4a478be185334b")
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) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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 torch

torch.manual_seed(0)

# The swish function takes a single Tensor parameter 'x'
# It calls x.sigmoid() and multiplies x by the result
# So we need a valid tensor

x = torch.randn(2, 4)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
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
to_planetoid Ran
ran; our contract draft was wrong, not the code
seijimaekawa/a2dug/src/data_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from CUAI/Non-Homophily-Large-Scale, is pointer only (licence: NONE) · get_code("01e5c1887f86d840")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from CUAI/Non-Homophily-Large-Scale, 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. A run is recorded.

even_quantile_labels Not yet run
unverified (harvested, no recorded run)
seijimaekawa/a2dug/src/data_utils.py
code served (permissive licence) · get_code("be162bddd27d9fac")
How it ran

no invocation recorded.

process Not yet run
unverified (harvested, no recorded run)
seijimaekawa/a2dug/src/model.py
code served (permissive licence) · get_code("71e05153a45879d4")
How it ran

no invocation recorded.

resolver Not yet run
unverified (harvested, no recorded run)
seijimaekawa/a2dug/src/layers.py
code served (permissive licence) · get_code("a24b6d4b9d32db82")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 7 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 2 the same month, 6 later) and 6 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
sparse_mx_to_torch_sparse_tensor 32 other papers
15 dated earlier, 1 the same month, 16 later · 4 only as an assembly brick
1806.09055 (2018-06)
DARTS: Differentiable Architecture Search
1902.07153 (2019-02)
Simplifying Graph Convolutional Networks
2002.01633 (2020-02)
Structural Deep Clustering Network
and 29 more not named here
rand_train_test_idx 14 other papers
2 dated earlier, 1 the same month, 11 later
2110.14446 (2021-10)
Large Scale Learning on Non-Homophilous Graphs: New Benchmarks and Strong Simple Methods
2302.01524 (2023-02)
Ordered GNN: Ordering Message Passing to Deal with Heterophily and Over-smoothing
2306.10759 (2023-06)
SGFormer: Simplifying and Empowering Transformers for Large-Graph Representations
and 11 more not named here
even_quantile_labels 8 other papers
2 dated earlier, 6 later
2210.07606 (2022-10)
Revisiting Heterophily For Graph Neural Networks
2302.01524 (2023-02)
Ordered GNN: Ordering Message Passing to Deal with Heterophily and Over-smoothing
2308.09517 (2023-08)
Transitivity-Preserving Graph Representation Learning for Bridging Local Connectivity and Role-based Similarity
and 5 more not named here
to_planetoid 8 other papers
2 dated earlier, 6 later
2110.14446 (2021-10)
Large Scale Learning on Non-Homophilous Graphs: New Benchmarks and Strong Simple Methods
2302.01524 (2023-02)
Ordered GNN: Ordering Message Passing to Deal with Heterophily and Over-smoothing
2310.00800 (2023-10)
GRAPHPATCHER: Mitigating Degree Bias for Graph Neural Networks via Test-time Augmentation
and 5 more not named here
normalize_string 2 other papers
1 dated earlier, 1 later
2206.09144 (2022-06)
Beyond Real-world Benchmark Datasets: An Empirical Study of Node Classification with GNNs
2310.00149 (2023-10)
One for All: Towards Training One Graph Model for All Classification Tasks
swish 2 other papers
1 dated earlier, 1 later
2206.09144 (2022-06)
Beyond Real-world Benchmark Datasets: An Empirical Study of Node Classification with GNNs
2310.00149 (2023-10)
One for All: Towards Training One Graph Model for All Classification Tasks
resolver 1 other paper
1 dated earlier
2206.09144 (2022-06)
Beyond Real-world Benchmark Datasets: An Empirical Study of Node Classification with GNNs

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

Node classification is one of the hottest tasks in graph analysis. Though existing studies have explored various node representations in directed and undirected graphs, they have overlooked the distinctions of their capabilities to capture the information of graphs. To tackle the limitation, we investigate various combinations of node representations (aggregated features vs. adjacency lists) and edge direction awareness within an input graph (directed vs. undirected). We address the first empirical study to benchmark the performance of various GNNs that use either combination of node representations and edge direction awareness. Our experiments demonstrate that no single combination stably achieves state-of-the-art results across datasets, which indicates that we need to select appropriate combinations depending on the dataset characteristics. In response, we propose a simple yet holistic classification method A2DUG which leverages all combinations of node representations in directed and undirected graphs. We demonstrate that A2DUG stably performs well on various datasets and improves the accuracy up to 11.29 compared with the state-of-the-art methods. To spur the development of new methods, we publicly release our complete codebase under the MIT license.

For agents

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

get_harvested_code_for_paper("2306.08274")
get_code_for_paper("2306.08274")
have("2306.08274")

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

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

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

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

Connect an agent — have() is free.