SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2409.17687 · NeurIPS · 2024

Graph Edit Distance with General Costs Using Neural Set Divergence

Abir De, Soumen Chakrabarti, Eeshaan Jain, Indradyumna Roy, Saswat Meher

arXiv · PDF · Open in the Atlas

Code that ran

20 of 25 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 18 failures of our instrument; 5 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/2409.17687.json · badge: /api/ran/2409.17687.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
structlearning/GraphEdX canonical (classifier label)
classifier basis: census
11 ran · 2 no recorded run
structlearning/graphedx canonical (classifier label)
classifier basis: classifier_2025
9 ran · 3 no recorded run
FunctionStatusWhere it lives
approximate_hamming_similarity Ran
ran; our contract draft was wrong, not the code
structlearning/GraphEdX/GMN/loss.py
pointer only (licence: MIT); the stored copy get_code serves, from structlearning/neural-subm-design-space, is pointer only (licence: NONE) · get_code("95afc6f0962b5c2a")
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 structlearning/neural-subm-design-space, 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.

asymm_embed_mat_l1_dist Ran
ran; our contract draft was wrong, not the code
structlearning/graphedx/models/graphedx.py
code served (permissive licence) · get_code("8ad55980e1c03523")
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 1, dtype family float, shape (2,) 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
import torch.nn.functional as F

torch.manual_seed(0)

# Analyze the function:
# - query_features: used in F.relu operations, needs shape compatible with corpus_features
# - corpus_features: matrix multiplied by transport_plan, then used in F.relu
# - transport_plan: matrix that multiplies corpus_features (@ operator)
# - add_cost: scalar multiplier
# - del_cost: scalar multiplier

# The operation: transport_plan @ corpus_features
# If transport_plan is (batch, m, n) and corpus_features is (batch, n, d),
# result is (batch, m, d)
# Then F.relu operations and .sum(dim=(-1, -2)) reduce to batch dimension

# Let's use:
# batch_size = 2
# corpus feature dim = 4
# query feature dim = 3 (different from corpus to be distinct)
# transport_plan: (2, 3, 4) - maps from 4-dim corpus space to 3-dim query space

batch_size = 2
corpus_dim = 4
query_dim = 3

query_features = torch.randn(batch_size, query_dim, query_dim)  # (2, 3, 3)
corpus_features = torch.randn(batch_size, corpus_dim, query_dim)  # (2, 4, 3)
transport_plan = torch.randn(batch_size, query_dim, corpus_dim)  # (2, 3, 4)

add_cost = 0.5
del_cost = 0.3

ARGS = {
    "query_features": query_features,
    "corpus_features": corpus_features,
    "transport_plan": transport_plan,
    "add_cost": add_cost,
    "del_cost": del_cost,
}
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 1, dtype family float, shape (2,) — shape (2,) 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
compute_loss Ran
ran; our contract draft was wrong, not the code
structlearning/graphedx/models/graphedx.py
code served (permissive licence) · get_code("310b4b2e126ed8b6")
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 0, dtype family float, shape () 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)

# Create small tensors for the function parameters
# The function expects tensors that can be compared element-wise
batch_size = 2
feature_dim = 4

lower_bound = torch.randn(batch_size, feature_dim)
upper_bound = torch.randn(batch_size, feature_dim)
out = torch.randn(batch_size, feature_dim)

# Ensure lower_bound < upper_bound for meaningful bounds
lower_bound = torch.min(lower_bound, upper_bound - 1.0)

ARGS = {
    "lower_bound": lower_bound,
    "upper_bound": upper_bound,
    "out": out,
}
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 0, dtype family float, shape () — shape () 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
euclidean_distance Ran
ran; our contract draft was wrong, not the code
structlearning/GraphEdX/GMN/loss.py
pointer only (licence: MIT); the stored copy get_code serves, from structlearning/neural-subm-design-space, is pointer only (licence: NONE) · get_code("69e7dcdc10127913")
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 structlearning/neural-subm-design-space, 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.

evaluate Ran
ran, honoured the contract we drafted
structlearning/GraphEdX/src/train_graphedx.py
code served (permissive licence) · get_code("0ab108ac04cb5ade")
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 1, 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 torch.nn as nn

torch.manual_seed(0)

# Create a minimal model that satisfies the usage in evaluate()
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 1)
    
    def forward(self, batch_data, batch_data_sizes, query_adj, target_adj):
        # batch_data shape: (batch_size, 4)
        # output shape: (batch_size, 1)
        return self.linear(batch_data)

# Create a minimal sampler that satisfies the usage in evaluate()
class SimpleSampler:
    def __init__(self):
        self.n_batches = 2
        self.batch_idx = 0
    
    def create_batches(self, shuffle=False):
        # Returns number of batches
        return self.n_batches
    
    def fetch_batched_data_by_id(self, batch_id):
        # Returns: (batch_data, batch_data_sizes, upper_bounds, lower_bounds, query_adj, target_adj)
        batch_size = 2
        
        batch_data = torch.randn(batch_size, 4)
        batch_data_sizes = torch.tensor([4, 4])
        upper_bounds = torch.randn(batch_size, 1)
        lower_bounds = torch.randn(batch_size, 1)
        query_adj = torch.randn(batch_size, 3, 3)
        target_adj = torch.randn(batch_size, 3, 3)
        
        return batch_data, batch_data_sizes, upper_bounds, lower_bounds, query_adj, target_adj

model = SimpleModel()
sampler = SimpleSampler()

ARGS = {
    'model': model,
    'sampler': sampler
}
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 1, 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
evaluate Ran
ran, honoured the contract we drafted
structlearning/GraphEdX/src/train_graphedx_label.py
code served (permissive licence) · get_code("18a32d300eb754e3")
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 1, 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 torch.nn as nn

torch.manual_seed(0)

# Define a minimal model that matches the function's usage
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 2)
    
    def forward(self, batch_data, batch_data_sizes, one_hot_labels, query_adj, target_adj):
        # Return predictions with shape (batch_size, 1)
        return self.linear(batch_data).sum(dim=1, keepdim=True)

# Define a minimal sampler that matches the function's usage
class SimpleSampler:
    def __init__(self):
        self.num_batches = 2
        self.batch_size = 2
    
    def create_batches(self, shuffle=False):
        return self.num_batches
    
    def fetch_batched_data_by_id(self, batch_id):
        batch_size = self.batch_size
        # batch_data: (batch_size, 4)
        batch_data = torch.randn(batch_size, 4)
        # batch_data_sizes: (batch_size,)
        batch_data_sizes = torch.randint(1, 5, (batch_size,))
        # upper_bounds: (batch_size, 1)
        upper_bounds = torch.randn(batch_size, 1)
        # lower_bounds: (batch_size, 1)
        lower_bounds = torch.randn(batch_size, 1)
        # one_hot_labels: (batch_size, 3)
        one_hot_labels = torch.randint(0, 2, (batch_size, 3)).float()
        # query_adj: (batch_size, 5, 5)
        query_adj = torch.randn(batch_size, 5, 5)
        # target_adj: (batch_size, 5, 5)
        target_adj = torch.randn(batch_size, 5, 5)
        
        return batch_data, batch_data_sizes, upper_bounds, lower_bounds, one_hot_labels, query_adj, target_adj

model = SimpleModel()
sampler = SimpleSampler()

ARGS = {
    "model": model,
    "sampler": sampler
}
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 1, 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_default_gmn_config Ran
ran; our contract draft was wrong, not the code
structlearning/GraphEdX/utils/model_utils.py
code served (permissive licence) · get_code("b184bb466ed11cbe")
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 torch
import torch.nn as nn

# Create a minimal config object that has the required attributes
class MinimalConfig:
    def __init__(self):
        self.training = TrainingConfig()

class TrainingConfig:
    def __init__(self):
        self.seed = 42

conf = MinimalConfig()

ARGS = {
    'conf': conf
}
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 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
get_graph_features Ran
ran; our contract draft was wrong, not the code
structlearning/graphedx/models/graphedx.py
code served (permissive licence) · get_code("9369db470a2582dd")
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 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 torch
import numpy as np

torch.manual_seed(0)

class GraphBatch:
    def __init__(self):
        # node_features: (num_nodes, feature_dim)
        self.node_features = torch.randn(5, 4)
        
        # edge_features: (num_edges, feature_dim)
        self.edge_features = torch.randn(7, 3)
        
        # from_idx: source node indices for edges
        self.from_idx = torch.tensor([0, 1, 2, 0, 1, 3, 4], dtype=torch.long)
        
        # to_idx: target node indices for edges
        self.to_idx = torch.tensor([1, 2, 3, 4, 0, 1, 2], dtype=torch.long)
        
        # graph_idx: which graph each node belongs to (batch of 2 graphs)
        self.graph_idx = torch.tensor([0, 0, 0, 1, 1], dtype=torch.long)

graphs = GraphBatch()

ARGS = {
    "graphs": graphs
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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
graph_prop_once Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
structlearning/graphedx/models/graphedx.py
code served (permissive licence) · get_code("2a761f476bdc2e9c")
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 (2, 5) 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
import torch.nn as nn

torch.manual_seed(0)

# Define a simple message network that takes concatenated edge inputs
# and produces message vectors
class MessageNet(nn.Module):
    def __init__(self, input_dim, output_dim):
        super().__init__()
        self.linear = nn.Linear(input_dim, output_dim)
    
    def forward(self, x):
        return self.linear(x)

# Define a simple aggregation module
def aggregation_module(messages, to_idx, n_nodes):
    """Aggregates messages to nodes using unsorted_segment_sum."""
    return unsorted_segment_sum(messages, to_idx, n_nodes)

# Set up small tensors with distinct dimensions
n_nodes = 2
node_state_dim = 4
n_edges = 3
edge_message_dim = 5
edge_feature_dim = 3

# Create node states: [n_nodes, node_state_dim]
node_states = torch.randn(n_nodes, node_state_dim)

# Create edge indices
from_idx = torch.tensor([0, 1, 0], dtype=torch.long)
to_idx = torch.tensor([1, 0, 1], dtype=torch.long)

# Create edge features: [n_edges, edge_feature_dim]
edge_features = torch.randn(n_edges, edge_feature_dim)

# Create message network
# Input dim = node_state_dim + node_state_dim + edge_feature_dim
# (from_states + to_states + edge_features)
message_net = MessageNet(
    input_dim=node_state_dim + node_state_dim + edge_feature_dim,
    output_dim=edge_message_dim
)

ARGS = {
    'node_states': node_states,
    'from_idx': from_idx,
    'to_idx': to_idx,
    'message_net': message_net,
    'aggregation_module': aggregation_module,
    'edge_features': edge_features
}
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 (2, 5) — shape (2, 5) 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
modify_gmn_main_config Ran
ran; our contract draft was wrong, not the code
structlearning/GraphEdX/utils/model_utils.py
code served (permissive licence) · get_code("0127ae44341328ed")
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 torch
import logging

# Create a minimal logger
logger = logging.getLogger('test')
logger.setLevel(logging.INFO)
handler = logging.StreamHandler()
logger.addHandler(handler)

# Create minimal config objects with required attributes
class GMNConfig:
    def __init__(self):
        self.filters_3 = 32
        self.GMN_NPROPLAYERS = 5

class DatasetConfig:
    def __init__(self):
        self.one_hot_dim = 16

class TrainingConfig:
    def __init__(self):
        self.batch_size = 8
        self.dropout = 0.5

class Conf:
    def __init__(self):
        self.gmn = GMNConfig()
        self.dataset = DatasetConfig()
        self.training = TrainingConfig()

# Create gmn_config as a nested dict structure
gmn_config = {
    'encoder': {},
    'aggregator': {},
    'graph_matching_net': {},
    'graph_embedding_net': {},
    'training': {},
    'evaluation': {}
}

conf = Conf()

ARGS = {
    'gmn_config': gmn_config,
    'conf': conf,
    'logger': logger
}
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 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
modify_gmn_main_config_shallow Ran
ran; our contract draft was wrong, not the code
structlearning/GraphEdX/utils/model_utils.py
code served (permissive licence) · get_code("5eabd9835e8a4d18")
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 logging

# Create a minimal logger
logger = logging.getLogger('test_logger')
logger.setLevel(logging.INFO)
handler = logging.StreamHandler()
logger.addHandler(handler)

# Create minimal config objects with nested attributes
class GMNConfig:
    def __init__(self):
        self.filters_3 = 64
        self.GMN_NPROPLAYERS = 3

class DatasetConfig:
    def __init__(self):
        self.one_hot_dim = 16

class TrainingConfig:
    def __init__(self):
        self.batch_size = 32
        self.dropout = 0.5

class Conf:
    def __init__(self):
        self.gmn = GMNConfig()
        self.dataset = DatasetConfig()
        self.training = TrainingConfig()

# Create the gmn_config dictionary with expected structure
gmn_config = {
    'encoder': {
        'node_hidden_sizes': [],
        'node_feature_dim': 0,
        'edge_feature_dim': 0
    },
    'aggregator': {
        'node_hidden_sizes': [],
        'graph_transform_sizes': [],
        'input_size': []
    },
    'graph_matching_net': {
        'node_state_dim': 0,
        'edge_hidden_sizes': [],
        'node_hidden_sizes': [],
        'n_prop_layers': 0
    },
    'graph_embedding_net': {
        'node_state_dim': 0,
        'edge_hidden_sizes': [],
        'node_hidden_sizes': [],
        'n_prop_layers': 0
    },
    'training': {
        'batch_size': 0
    },
    'evaluation': {
        'batch_size': 0
    },
    'model_type': '',
    'graphsim': {}
}

conf = Conf()

ARGS = {
    'gmn_config': gmn_config,
    'conf': conf,
    'logger': logger
}
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 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
pairwise_dot_product_similarity Ran
ran; our contract draft was wrong, not the code
structlearning/GraphEdX/GMN/fast_graphmatchingnetwork.py
pointer only (licence: MIT); the stored copy get_code serves, from structlearning/neural-subm-design-space, is pointer only (licence: NONE) · get_code("9a12e8146ffaef47")
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 structlearning/neural-subm-design-space, 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.

pairwise_loss Ran
ran; our contract draft was wrong, not the code
structlearning/GraphEdX/GMN/loss.py
pointer only (licence: MIT); the stored copy get_code serves, from structlearning/neural-subm-design-space, is pointer only (licence: NONE) · get_code("a4f527c188a5f7fd")
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 structlearning/neural-subm-design-space, 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.

permute_graph_nodes Ran
ran; our contract draft was wrong, not the code
structlearning/GraphEdX/GMN/dataset.py
pointer only (licence: MIT); the stored copy get_code serves, from structlearning/neural-subm-design-space, is pointer only (licence: NONE) · get_code("ff70e907d342b902")
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 structlearning/neural-subm-design-space, 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.

pytorch_sample_gumbel Ran
ran; our contract draft was wrong, not the code
structlearning/graphedx/models/graphedx.py
code served (permissive licence) · get_code("b0cbba82a28e65dd")
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)

ARGS = {
    "shape": (2, 4),
    "device": "cpu",
    "eps": 1e-20
}
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
pytorch_sinkhorn_iters Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
structlearning/graphedx/models/graphedx.py
code served (permissive licence) · get_code("0f4c11f88b918a82")
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 3, dtype family float, shape (2, 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)

# Construct log_alpha tensor: shape (batch_size, num_objs, num_objs)
# Using batch_size=2, num_objs=4
log_alpha = torch.randn(2, 4, 4, dtype=torch.float)

# Device is CPU
device = 'cpu'

# Temperature parameter for scaling
temperature = 0.1

# Noise factor for Gumbel noise
noise_factor = 0.5

# Number of Sinkhorn iterations
num_iters = 20

ARGS = {
    'log_alpha': log_alpha,
    'device': device,
    'temperature': temperature,
    'noise_factor': noise_factor,
    'num_iters': num_iters
}
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 3, dtype family float, shape (2, 4, 4) — shape (2, 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
split_and_stack Ran
ran; our contract draft was wrong, not the code
structlearning/graphedx/models/graphedx.py
code served (permissive licence) · get_code("065225e446072baa")
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 tuple, ndim 4, 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 torch.nn.functional as F

torch.manual_seed(0)

# Create sample features tensor
# The function splits this by graph_sizes, so we need a total size that matches sum(graph_sizes)
# Let's use graph_sizes = [2, 3, 2, 3] which sums to 10
# features should have shape (10, 4) where 10 is the sum of graph_sizes and 4 is feature dim
features = torch.randn(10, 4)

# graph_sizes determines how to split the features tensor
# The function expects even number of splits (query and corpus pairs)
# split_to_query_and_corpus takes every other element starting from 0 and 1
# So if we have 4 splits, we get 2 queries and 2 corpus
graph_sizes = [2, 3, 2, 3]

# max_set_size is used for padding in the stack_features lambda
# It should be at least as large as the maximum size in graph_sizes
max_set_size = 5

ARGS = {
    "features": features,
    "graph_sizes": graph_sizes,
    "max_set_size": max_set_size,
}
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 tuple, ndim 4, 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
split_to_query_and_corpus Ran
ran; our contract draft was wrong, not the code
structlearning/graphedx/models/graphedx.py
code served (permissive licence) · get_code("2468f115a7f89d3a")
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 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 torch

torch.manual_seed(0)

# Create a features tensor with shape (6, 4)
# This will be split into 3 graphs of sizes [2, 2, 2]
features = torch.randn(6, 4)

# Create graph_sizes list that specifies how to split the features
# With sizes [2, 2, 2], we get 3 tensors of shape (2, 4) each
# Then features_query will be indices [0, 2] and features_corpus will be indices [1]
graph_sizes = [2, 2, 2]

ARGS = {
    "features": features,
    "graph_sizes": graph_sizes,
}
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 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
substitute_random_edges Ran
ran; our contract draft was wrong, not the code
structlearning/GraphEdX/GMN/dataset.py
pointer only (licence: MIT); the stored copy get_code serves, from structlearning/neural-subm-design-space, is pointer only (licence: NONE) · get_code("19a40503f8bc9732")
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 structlearning/neural-subm-design-space, 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.

unsorted_segment_sum Ran
ran; our contract draft was wrong, not the code
structlearning/graphedx/models/graphedx.py
code served (permissive licence) · get_code("65ea513617120aff")
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)

# Create sample tensors for unsorted_segment_sum
# data: shape (2, 4) - 2 segments, 4 features each
data = torch.tensor([
    [1.0, 2.0, 3.0, 4.0],
    [5.0, 6.0, 7.0, 8.0]
], dtype=torch.float32)

# segment_ids: shape (2,) - assigns each row to a segment
segment_ids = torch.tensor([0, 1], dtype=torch.long)

# num_segments: number of output segments
num_segments = 2

ARGS = {
    "data": data,
    "segment_ids": segment_ids,
    "num_segments": num_segments
}
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
GRAPHEDX_no_xor Not yet run
unverified (harvested, no recorded run)
structlearning/graphedx/models/graphedx.py
code served (permissive licence) · get_code("b249ba548c0c9be1")
How it ran

no invocation recorded.

GraphEncoder Not yet run
unverified (harvested, no recorded run)
structlearning/graphedx/models/graphedx.py
code served (permissive licence) · get_code("3f351498dcb392cc")
How it ran

no invocation recorded.

GraphPropLayer Not yet run
unverified (harvested, no recorded run)
structlearning/graphedx/models/graphedx.py
code served (permissive licence) · get_code("303a3b8ce9e8fc66")
How it ran

no invocation recorded.

pairwise_cosine_similarity Not yet run
unverified (harvested, no recorded run)
structlearning/GraphEdX/GMN/fast_graphmatchingnetwork.py
pointer only (licence: MIT); the stored copy get_code serves, from structlearning/neural-subm-design-space, is pointer only (licence: NONE) · get_code("b0a1692650a31872")
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 structlearning/neural-subm-design-space, 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.

pairwise_euclidean_similarity Not yet run
unverified (harvested, no recorded run)
structlearning/GraphEdX/GMN/fast_graphmatchingnetwork.py
pointer only (licence: MIT); the stored copy get_code serves, from structlearning/neural-subm-design-space, is pointer only (licence: NONE) · get_code("95b1b93041fc8ad0")
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 structlearning/neural-subm-design-space, 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 25 samples lifted from this paper's linked repositories, 25 carry a function identity and 0 do not. Of the 25 distinct functions with an identity, 10 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 10 later) and 15 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
approximate_hamming_similarity 2 other papers
1 dated earlier, 1 later
2401.09953 (2024-01)
Through the Dual-Prism: A Spectral Perspective on Graph Data Augmentation for Graph Classification
2510.22897 (2025-10)
Charting the Design Space of Neural Graph Representations for Subgraph Matching
euclidean_distance 2 other papers
1 dated earlier, 1 later
2401.09953 (2024-01)
Through the Dual-Prism: A Spectral Perspective on Graph Data Augmentation for Graph Classification
2510.22897 (2025-10)
Charting the Design Space of Neural Graph Representations for Subgraph Matching
get_graph_features
brick of this paper's assembly: helper
1 other paper
1 later
2510.22897 (2025-10)
Charting the Design Space of Neural Graph Representations for Subgraph Matching
pairwise_cosine_similarity 1 other paper
1 later
2510.22897 (2025-10)
Charting the Design Space of Neural Graph Representations for Subgraph Matching
pairwise_dot_product_similarity 1 other paper
1 later
2510.22897 (2025-10)
Charting the Design Space of Neural Graph Representations for Subgraph Matching
pairwise_euclidean_similarity 1 other paper
1 later
2510.22897 (2025-10)
Charting the Design Space of Neural Graph Representations for Subgraph Matching
pairwise_loss 1 other paper
1 later
2510.22897 (2025-10)
Charting the Design Space of Neural Graph Representations for Subgraph Matching
permute_graph_nodes 1 other paper
1 later
2510.22897 (2025-10)
Charting the Design Space of Neural Graph Representations for Subgraph Matching
substitute_random_edges 1 other paper
1 later
2510.22897 (2025-10)
Charting the Design Space of Neural Graph Representations for Subgraph Matching
unsorted_segment_sum
brick of this paper's assembly: helper
1 other paper
1 later
2510.22897 (2025-10)
Charting the Design Space of Neural Graph Representations for Subgraph Matching

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 Edit Distance (GED) measures the (dis-)similarity between two given graphs, in terms of the minimum-cost edit sequence that transforms one graph to the other. However, the exact computation of GED is NP-Hard, which has recently motivated the design of neural methods for GED estimation. However, they do not explicitly account for edit operations with different costs. In response, we propose GRAPHEDX, a neural GED estimator that can work with general costs specified for the four edit operations, viz., edge deletion, edge addition, node deletion and node addition. We first present GED as a quadratic assignment problem (QAP) that incorporates these four costs. Then, we represent each graph as a set of node and edge embeddings and use them to design a family of neural set divergence surrogates. We replace the QAP terms corresponding to each operation with their surrogates. Computing such neural set divergence require aligning nodes and edges of the two graphs. We learn these alignments using a Gumbel-Sinkhorn permutation generator, additionally ensuring that the node and edge alignments are consistent with each other. Moreover, these alignments are cognizant of both the presence and absence of edges between node-pairs. Experiments on several datasets, under a variety of edit cost settings, show that GRAPHEDX consistently outperforms state-of-the-art methods and heuristics in terms of prediction error. The code is available at https://github.com/structlearning/GraphEdX. * Equal contribution. Eeshaan Jain did this work while at IIT Bombay.

For agents

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

get_harvested_code_for_paper("2409.17687")
get_code_for_paper("2409.17687")
have("2409.17687")

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

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

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

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

Connect an agent — have() is free.