SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · ijcai2022_0310 · IJCAI · 2022

Beyond Homophily: Structure-aware Path Aggregation Graph Neural Network

Lei Chen, Jiarong Xu, Yang Yang, Yang Wang, Chunping Wang, Yifei Sun, Renhong Huang, Linfeng Cao, Haoran Deng

Code that ran

3 of 3 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; 0 no recorded run), measured 2026-11-24; 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/ijcai2022_0310.json · badge: /api/ran/ijcai2022_0310.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
zjunet/PathNet canonical (classifier label)
classifier basis: census
3 ran · 0 no recorded run
FunctionStatusWhere it lives
get_order Ran
ran on a synthesized input
zjunet/PathNet/data_loader.py
code served (permissive licence) · get_code("64752529f3c1cc7c")
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, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 random

torch.manual_seed(0)

# Construct arguments for get_order function
ratio = [6, 2, 2]  # train:val:test ratio
masked_index = torch.tensor([0, 1, 3, 5, 7, 9, 11, 13, 15, 17], dtype=torch.long)  # 10 masked nodes
total_node_num = 20  # total nodes in graph
seed = 1234567

ARGS = {
    "ratio": ratio,
    "masked_index": masked_index,
    "total_node_num": total_node_num,
    "seed": seed,
}
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 tuple, ndim 2, dtype family float — a tuple output has no array shape of its own; none is stated
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
get_whole_mask Ran
ran on a synthesized input
zjunet/PathNet/data_loader.py
code served (permissive licence) · get_code("b72856d80faf1d16")
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, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 random

torch.manual_seed(0)

# Create a small label tensor where some values are -1 (unlabeled) and others are labeled
# Total of 10 nodes, with 8 labeled and 2 unlabeled
y = torch.tensor([0, 1, -1, 0, 1, 0, 1, -1, 0, 1], dtype=torch.long)

ARGS = {
    "y": y,
    "ratio": [48, 32, 20],
    "seed": 1234567
}
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 tuple, ndim 2, dtype family float — a tuple output has no array shape of its own; none is stated
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
sparse_to_tuple Ran
ran; our contract draft was wrong, not the code
zjunet/PathNet/dataset.py
code served (permissive licence) · get_code("eaa82e9c7a22e930")
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 a small sparse matrix
row = np.array([0, 1, 2, 3])
col = np.array([1, 2, 0, 3])
data = np.array([1.0, 2.0, 3.0, 4.0])
sparse_matrix = sp.coo_matrix((data, (row, col)), shape=(4, 4))

# Test with single sparse matrix
ARGS = {
    "sparse_mx": sparse_matrix
}

# Also test with a list of sparse matrices to verify the list branch
sparse_matrix_2 = sp.csr_matrix(([5.0, 6.0], ([0, 1], [1, 2])), shape=(3, 4))
sparse_matrix_3 = sp.lil_matrix((2, 5))
sparse_matrix_3[0, 1] = 7.0
sparse_matrix_3[1, 3] = 8.0

ARGS_list = {
    "sparse_mx": [sparse_matrix, sparse_matrix_2, sparse_matrix_3]
}

# Use the single matrix version as default
ARGS = {
    "sparse_mx": sparse_matrix
}
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

Also present in other papers' code

Of 3 samples lifted from this paper's linked repositories, 3 carry a function identity and 0 do not. Of the 3 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 later) and 2 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_to_tuple 7 other papers
1 dated earlier, 4 later, 2 same year, order not determinable
1903.04154 (2019-03)
Fisher-Bures Adversary Graph Convolutional Networks
aaai_20388 (2022 (year only))
RepBin: Constraint-Based Graph Representation Learning for Metagenomic Binning
2203.03315 (2022-03)
Deep Reinforcement Learning for Entity Alignment
and 4 more not named here

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-24.

Repositories linked to this paper

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

Abstract

Graph neural networks (GNNs) have been intensively studied in various real-world tasks. However, the homophily assumption of GNNs' aggregation function limits their representation learning ability in heterophily graphs. In this paper, we shed light on the path level patterns in graphs that can explicitly reflect rich semantic and structural information. We therefore propose a novel Structure-aware Path Aggregation Graph Neural Network (PathNet) aiming to generalize GNNs for both homophily and heterophily graphs. Specifically, we first introduce a maximal entropy path sampler, which helps us sample a number of paths containing structural context. Then, we introduce a structure-aware recurrent cell consisting of order-preserving and distance-aware components to learn the semantic information of neighborhoods. Finally, we model the preference of different paths to target node after path encoding. Experimental results demonstrate that our model achieves superior performance in node classification on both heterophily and homophily graphs.

For agents

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

get_harvested_code_for_paper("ijcai2022_0310")
get_code_for_paper("ijcai2022_0310")
have("ijcai2022_0310")

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

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

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

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

Connect an agent — have() is free.