SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2206.13176 · 2022

A Representation Learning Framework for Property Graphs

arXiv · PDF · Open in the Atlas

Code that ran

8 of 12 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; 1 honoured the contract we drafted, 0 violated it and 6 have no contract verdict; 1 failure of our instrument; 4 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/2206.13176.json · badge: /api/ran/2206.13176.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
yifan-h/pge canonical (classifier label)
classifier basis not recorded on the link
8 ran · 4 no recorded run
FunctionStatusWhere it lives
evaluate Ran
ran on a synthesized input
yifan-h/pge/pge/unsup_property_train.py
code served (permissive licence) · get_code("3a842f5654d7a218")
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 torch
import torch.nn as nn
import tensorflow as tf
import numpy as np

# Create a minimal model class that has the required attributes
class MockModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    @property
    def loss(self):
        return tf.constant(0.5, dtype=tf.float32)
    
    @property
    def ranks(self):
        return tf.constant([1, 2], dtype=tf.int32)
    
    @property
    def mrr(self):
        return tf.constant(0.75, dtype=tf.float32)

# Create a minimal minibatch iterator with val_feed_dict method
class MockMinibatchIter:
    def val_feed_dict(self, size=None):
        return {}

# Create a minimal TensorFlow session mock
class MockSession:
    def run(self, fetches, feed_dict=None):
        # Return values matching the structure expected: [loss, ranks, mrr]
        return [
            np.array(0.5, dtype=np.float32),  # loss
            np.array([1, 2], dtype=np.int32),  # ranks
            np.array(0.75, dtype=np.float32)   # mrr
        ]

# Build the arguments
model = MockModel()
minibatch_iter = MockMinibatchIter()
sess = MockSession()

ARGS = {
    "sess": sess,
    "model": model,
    "minibatch_iter": minibatch_iter,
    "size": None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow, 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
get_layer_uid Ran
ran, honoured the contract we drafted
yifan-h/pge/pge/layers.py
pointer only (licence: MIT); the stored copy get_code serves, from thumlp/tensorgcn, is pointer only (licence: NONE) · get_code("b82968db452628fd")
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 thumlp/tensorgcn, 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.

incremental_evaluate Ran
ran on a synthesized input
yifan-h/pge/pge/unsup_property_train.py
code served (permissive licence) · get_code("35ca1c0af047c888")
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 time
import numpy as np
import tensorflow as tf

# Stand-in classes for TensorFlow components
class StandInModel:
    def __init__(self):
        self.loss = tf.constant(0.5, dtype=tf.float32)
        self.ranks = tf.constant([1.0, 2.0], dtype=tf.float32)
        self.mrr = tf.constant(0.75, dtype=tf.float32)

class StandInMinibatchIter:
    def __init__(self):
        self.call_count = 0
    
    def incremental_val_feed_dict(self, size, iter_num):
        # Simulate 2 iterations before finishing
        finished = self.call_count >= 2
        self.call_count += 1
        feed_dict = {}
        return feed_dict, finished, None

class StandInSession:
    def __init__(self):
        pass
    
    def run(self, fetches, feed_dict=None):
        # Return mock values: [loss, ranks, mrr]
        return [np.float32(0.5), np.array([1.0, 2.0]), np.float32(0.75)]

# Create instances
model = StandInModel()
minibatch_iter = StandInMinibatchIter()
sess = StandInSession()
size = 32

ARGS = {
    "sess": sess,
    "model": model,
    "minibatch_iter": minibatch_iter,
    "size": size
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — 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
loadG Ran
ran on a synthesized input
yifan-h/pge/pge/utils.py
code served (permissive licence) · get_code("fc0a542cab585194")
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 Graph. 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 json
import tempfile
import os
from networkx.readwrite import json_graph
import networkx as nx

# Create a temporary directory for test files
temp_dir = tempfile.mkdtemp()

# Create a simple graph
G = nx.Graph()
G.add_node(1, label="node1")
G.add_node(2, label="node2")
G.add_edge(1, 2, weight=0.5)

# Convert to node-link format and save
node_link_data = json_graph.node_link_graph(json_graph.node_link_data(G), directed=False)
graph_dict = json_graph.node_link_data(G)

# Save to JSON file
base_path = os.path.join(temp_dir, "test")
with open(base_path + "-G.json", "w") as f:
    json.dump(graph_dict, f)

# Define arguments for loadG function
ARGS = {
    "x": base_path,
    "d": False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
networkx — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Graph — a Graph output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Graph output the recorded ndim 1 and dtype family int 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
loadjson Ran
ran on a synthesized input
yifan-h/pge/pge/utils.py
code served (permissive licence) · get_code("cb22c8294f1adab1")
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 json
import tempfile
import os

# Create a temporary JSON file
temp_dir = tempfile.mkdtemp()
temp_json_file = os.path.join(temp_dir, "test.json")

# Write a simple JSON structure to the file
test_data = {
    "key1": "value1",
    "key2": 42,
    "key3": [1, 2, 3]
}

with open(temp_json_file, 'w') as f:
    json.dump(test_data, f)

# Define ARGS mapping the parameter to a valid file path
ARGS = {
    "x": temp_json_file
}
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
masked_logit_cross_entropy Ran
ran on a synthesized input
yifan-h/pge/pge/metrics.py
code served (permissive licence) · get_code("c7f5ff2cd2ce775f")
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 EagerTensor, 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 tensorflow as tf
import numpy as np

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

# Create small sample tensors
batch_size = 2
num_features = 4

# preds: logits, shape (batch_size, num_features)
preds = tf.constant([
    [0.5, -0.3, 1.2, -0.8],
    [-0.2, 0.9, -1.1, 0.4]
], dtype=tf.float32)

# labels: binary labels, shape (batch_size, num_features)
labels = tf.constant([
    [1.0, 0.0, 1.0, 0.0],
    [0.0, 1.0, 0.0, 1.0]
], dtype=tf.float32)

# mask: binary mask, shape (batch_size,)
mask = tf.constant([1.0, 1.0], dtype=tf.float32)

ARGS = {
    "preds": preds,
    "labels": labels,
    "mask": mask
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, 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
masked_softmax_cross_entropy Ran
ran on a synthesized input
yifan-h/pge/pge/metrics.py
code served (permissive licence) · get_code("962a128cca9473ed")
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 EagerTensor, 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 tensorflow as tf
import numpy as np

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

# Create small test tensors
batch_size = 2
num_classes = 4

# preds: logits tensor of shape (batch_size, num_classes)
preds = tf.constant([
    [1.0, 2.0, 0.5, 1.5],
    [0.2, 1.5, 2.0, 0.8]
], dtype=tf.float32)

# labels: one-hot encoded labels of shape (batch_size, num_classes)
labels = tf.constant([
    [0.0, 1.0, 0.0, 0.0],
    [0.0, 0.0, 1.0, 0.0]
], dtype=tf.float32)

# mask: binary mask of shape (batch_size,) indicating which samples to include
mask = tf.constant([1.0, 1.0], dtype=tf.float32)

ARGS = {
    'preds': preds,
    'labels': labels,
    'mask': mask
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, 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
zeros Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yifan-h/pge/pge/inits.py
pointer only (licence: MIT); the stored copy get_code serves, from flyingdoog/PTDNet, is pointer only (licence: NONE) · get_code("b190ef9c60b2629a")
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 flyingdoog/PTDNet, 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.

glorot Not yet run
unverified (harvested, no recorded run)
yifan-h/pge/pge/inits.py
pointer only (licence: MIT); the stored copy get_code serves, from nju-websoft/OpenEA, is pointer only (licence: GPL-3.0) · get_code("1b491f3f784b7cb0")
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 nju-websoft/OpenEA, and GPL-3.0, as GitHub detects it on that repository, is not in the permissive set Syntology serves inline. 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.

masked_l2 Not yet run
unverified (harvested, no recorded run)
yifan-h/pge/pge/metrics.py
code served (permissive licence) · get_code("bdb87af919e0b246")
How it ran

no invocation recorded.

process_graph Not yet run
unverified (harvested, no recorded run)
yifan-h/pge/pge/utils.py
code served (permissive licence) · get_code("d467257dc55ee77c")
How it ran

no invocation recorded.

uniform Not yet run
unverified (harvested, no recorded run)
yifan-h/pge/pge/inits.py
pointer only (licence: MIT); the stored copy get_code serves, from flyingdoog/PTDNet, is pointer only (licence: NONE) · get_code("b0d1b78daecde7e9")
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 flyingdoog/PTDNet, 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 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 7 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 2 the same month, 4 later) and 5 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
get_layer_uid 33 other papers
28 dated earlier, 3 later, 2 same year, order not determinable · 5 only as an assembly brick
1603.08861 (2016-03)
Revisiting Semi-Supervised Learning with Graph Embeddings
1606.09375 (2016-06)
Convolutional Neural Networks on Graphs with Fast Localized Spectral Filtering
1609.02907 (2016-09)
Semi-Supervised Classification with Graph Convolutional Networks
and 30 more not named here
zeros 18 other papers
16 dated earlier, 1 later, 1 same year, order not determinable
1603.08861 (2016-03)
Revisiting Semi-Supervised Learning with Graph Embeddings
1804.00823 (2018-04)
Graph2Seq: Graph to Sequence Learning with Attention-based Neural Networks
1804.01654 (2018-04)
Pixel2Mesh: Generating 3D Mesh Models from Single RGB Images
and 15 more not named here
uniform 17 other papers
15 dated earlier, 1 later, 1 same year, order not determinable
1603.08861 (2016-03)
Revisiting Semi-Supervised Learning with Graph Embeddings
1804.00823 (2018-04)
Graph2Seq: Graph to Sequence Learning with Attention-based Neural Networks
1804.01654 (2018-04)
Pixel2Mesh: Generating 3D Mesh Models from Single RGB Images
and 14 more not named here
glorot 16 other papers
14 dated earlier, 1 later, 1 same year, order not determinable
1603.08861 (2016-03)
Revisiting Semi-Supervised Learning with Graph Embeddings
1804.00823 (2018-04)
Graph2Seq: Graph to Sequence Learning with Attention-based Neural Networks
1804.01654 (2018-04)
Pixel2Mesh: Generating 3D Mesh Models from Single RGB Images
and 13 more not named here
evaluate 1 other paper
1 dated earlier
2004.01024 (2020-04)
Modeling Dynamic Heterogeneous Network for Link Prediction using Hierarchical Attention with Temporal RNN
loadG 1 other paper
1 the same month
2206.13170 (2022-06)
Measuring and Improving the Use of Graph Information in Graph Neural Networks
loadjson 1 other paper
1 the same month
2206.13170 (2022-06)
Measuring and Improving the Use of Graph Information in Graph Neural Networks

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

Representation learning on graphs, also called graph embedding, has demonstrated its significant impact on a series of machine learning applications such as classification, prediction and recommendation. However, existing work has largely ignored the rich information contained in the properties (or attributes) of both nodes and edges of graphs in modern applications, e.g., those represented by property graphs. To date, most existing graph embedding methods either focus on plain graphs with only the graph topology, or consider properties on nodes only. We propose PGE, a graph representation learning framework that incorporates both node and edge properties into the graph embedding procedure. PGE uses node clustering to assign biases to differentiate neighbors of a node and leverages multiple data-driven matrices to aggregate the property information of neighbors sampled based on a biased strategy. PGE adopts the popular inductive model for neighborhood aggregation. We provide detailed analyses on the efficacy of our method and validate the performance of PGE by showing how PGE achieves better embedding results than the state-of-the-art graph embedding methods on benchmark applications such as node classification and link prediction over real-world datasets.

For agents

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

get_harvested_code_for_paper("2206.13176")
get_code_for_paper("2206.13176")
have("2206.13176")

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

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

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

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

Connect an agent — have() is free.