SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2305.10498 · 2023

Edge Directionality Improves Learning on Heterophilic Graphs

arXiv · PDF · Open in the Atlas

Code that ran

4 of 5 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, 1 violated it and 1 has no contract verdict; 2 failures of our instrument; 1 no recorded run), measured 2026-11-23; 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/2305.10498.json · badge: /api/ran/2305.10498.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
emalgorithm/directed-graph-neural-network canonical (classifier label)
classifier basis: census
4 ran · 1 no recorded run
FunctionStatusWhere it lives
even_quantile_labels Ran
ran; our contract draft was wrong, not the code
emalgorithm/directed-graph-neural-network/src/utils/third_party.py
pointer only (licence: MIT); the stored copy get_code serves, from TakahashiTakutooo/GNN_LCC, is pointer only (licence: NONE) · get_code("aa7b67adc8e742a7")
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 TakahashiTakutooo/GNN_LCC, 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.

generate_synthetic_directed_pa_graph Ran
ran; our contract draft was wrong, not the code
emalgorithm/directed-graph-neural-network/src/datasets/synthetic.py
pointer only (licence: MIT); the stored copy get_code serves, from TakahashiTakutooo/GNN_LCC, is pointer only (licence: NONE) · get_code("3c3affd0e729d7f6")
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 TakahashiTakutooo/GNN_LCC, 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.

process_fixed_splits Ran
ran, violated the contract we drafted
emalgorithm/directed-graph-neural-network/src/utils/third_party.py
pointer only (licence: MIT); the stored copy get_code serves, from TakahashiTakutooo/GNN_LCC, is pointer only (licence: NONE) · get_code("921807f811fcb94a")
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 TakahashiTakutooo/GNN_LCC, 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.

use_best_hyperparams Ran
ran on a synthesized input
emalgorithm/directed-graph-neural-network/src/utils/utils.py
code served (permissive licence) · get_code("7c6099619413280b")
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 Args. 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
import yaml
import tempfile
import os

torch.manual_seed(0)

# Create a temporary directory and file for best_hyperparams.yml
temp_dir = tempfile.mkdtemp()
best_params_file = os.path.join(temp_dir, 'best_hyperparams.yml')

# Create sample hyperparameters YAML file
hyperparams_data = {
    'dataset_a': {
        'learning_rate': 0.001,
        'batch_size': 32,
        'epochs': 100
    },
    'dataset_b': {
        'learning_rate': 0.01,
        'batch_size': 64,
        'epochs': 50
    }
}

with open(best_params_file, 'w') as f:
    yaml.dump(hyperparams_data, f)

# Change to temp directory so the function can find best_hyperparams.yml
original_cwd = os.getcwd()
os.chdir(temp_dir)

# Create a simple args object with the necessary attributes
class Args:
    def __init__(self):
        self.learning_rate = 0.0
        self.batch_size = 0
        self.epochs = 0

args_obj = Args()

ARGS = {
    'args': args_obj,
    'dataset_name': 'dataset_a'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, yaml — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Args — a Args output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Args 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
node_class_split Not yet run
unverified (harvested, no recorded run)
emalgorithm/directed-graph-neural-network/src/datasets/telegram.py
pointer only (licence: MIT); the stored copy get_code serves, from TakahashiTakutooo/GNN_LCC, is pointer only (licence: NONE) · get_code("1b4e100d3857a49a")
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 TakahashiTakutooo/GNN_LCC, 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.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 4 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 4 later) and 1 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
even_quantile_labels 3 other papers
3 later
2310.02232 (2023-10)
HoloNets: Spectral Convolutions do extend to Directed Graphs
2407.14459 (2024-07)
PolyFormer: Scalable Node-wise Filters via Polynomial Graph Transformer
2606.07475 (2026-06)
Graph Neural Network leveraging Higher-order Class Label Connectivity for Heterophilous Graphs
generate_synthetic_directed_pa_graph 2 other papers
2 later
2310.02232 (2023-10)
HoloNets: Spectral Convolutions do extend to Directed Graphs
2606.07475 (2026-06)
Graph Neural Network leveraging Higher-order Class Label Connectivity for Heterophilous Graphs
node_class_split 2 other papers
2 later
2310.02232 (2023-10)
HoloNets: Spectral Convolutions do extend to Directed Graphs
2606.07475 (2026-06)
Graph Neural Network leveraging Higher-order Class Label Connectivity for Heterophilous Graphs
process_fixed_splits 2 other papers
2 later
2310.02232 (2023-10)
HoloNets: Spectral Convolutions do extend to Directed Graphs
2606.07475 (2026-06)
Graph Neural Network leveraging Higher-order Class Label Connectivity for Heterophilous Graphs

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

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 become the de-facto standard tool for modeling relational data. However, while many real-world graphs are directed, the majority of today's GNN models discard this information altogether by simply making the graph undirected. The reasons for this are historical: 1) many early variants of spectral GNNs explicitly required undirected graphs, and 2) the first benchmarks on homophilic graphs did not find significant gain from using direction. In this paper, we show that in heterophilic settings, treating the graph as directed increases the effective homophily of the graph, suggesting a potential gain from the correct use of directionality information. To this end, we introduce Directed Graph Neural Network (Dir-GNN), a novel general framework for deep learning on directed graphs. Dir-GNN can be used to extend any Message Passing Neural Network (MPNN) to account for edge directionality information by performing separate aggregations of the incoming and outgoing edges. We prove that Dir-GNN matches the expressivity of the Directed Weisfeiler-Lehman test, exceeding that of conventional MPNNs. In extensive experiments, we validate that while our framework leaves performance unchanged on homophilic datasets, it leads to large gains over base models such as GCN, GAT and GraphSage on heterophilic benchmarks, outperforming much more complex methods and achieving new state-of-the-art results.

For agents

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

get_harvested_code_for_paper("2305.10498")
get_code_for_paper("2305.10498")
have("2305.10498")

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

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

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

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

Connect an agent — have() is free.