SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2006.05582 · ICML · 2020

Contrastive Multi-View Representation Learning on Graphs

Amir Khasahmadi, Kaveh Hassani

arXiv · PDF · Open in the Atlas

Code that ran

16 of 22 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (3 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 1 violated it and 9 have no contract verdict; 6 failures of our instrument; 6 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/2006.05582.json · badge: /api/ran/2006.05582.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
timothewt/AdvancedGraphClustering community
Papers with Code archive
9 ran · 2 no recorded run
ycremar/DIG-SSL community
Papers with Code archive
7 ran · 2 no recorded run
dmlc/dgl community
Papers with Code archive
0 ran · 2 no recorded run
FunctionStatusWhere it lives
Algorithm Ran
ran on a synthesized input · constructed an object; no result was computed
timothewt/AdvancedGraphClustering/src/algorithms/deep/MVGRL.py
code served (permissive licence) · get_code("aa8592921f0a1166")
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 an instance of its own class, Algorithm: the run constructed the object and did not call it, so no result was computed. 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 networkx as nx

class Graph:
    """Graph class to represent a graph using the adjacency matrix and features"""

    def __init__(self, adj_matrix: np.ndarray, directed: bool=False, features: np.ndarray=None, labels: np.ndarray=None, dataset_name: str=''):
        """Constructor method"""
        self.adj_matrix: np.ndarray = adj_matrix
        self.edge_index: np.ndarray = np.argwhere(adj_matrix).transpose()
        if self.edge_index.size > 0:
            self.edge_weight: np.ndarray = adj_matrix[self.edge_index.transpose()[:, 0], self.edge_index.transpose()[:, 1]]
        else:
            self.edge_weight: np.ndarray = np.array([])
        self.features: np.ndarray = features if features is not None else np.ones((adj_matrix.shape[0], 1))
        self.labels: np.ndarray = labels
        self.dataset_name: str = dataset_name
        self.directed: bool = directed
        self.nx_graph: nx.Graph | nx.DiGraph = nx.DiGraph() if directed else nx.Graph()
        self._create_nx_graph()

    def _create_nx_graph(self) -> None:
        """Adds nodes and edges to the NetworkX graph object"""
        self.nx_graph.add_nodes_from(range(self.features.shape[0]))
        self.nx_graph.add_edges_from(self.edge_index.transpose())
        for i, (u, v) in enumerate(self.edge_index.transpose()):
            self.nx_graph[u][v]['weight'] = self.edge_weight[i]

    def __str__(self):
        """Returns the string representation of the graph object"""
        return f'Graph with {self.adj_matrix.shape[0]} nodes and {self.edge_index.shape[1]} edges.'

    def __repr__(self):
        """Returns the string representation of the graph object"""
        return self.__str__()

    def __getitem__(self, key: int) -> np.ndarray:
        """Returns the adjacency matrix of the graph for the given key"""
        return self.adj_matrix[key]


class Algorithm:
    """Base class for graph clustering algorithms"""

    def __init__(self, graph: Graph, *args, **kwargs):
        """Constructor method"""
        self.graph: Graph = graph
        self.clusters: list[int] = [0 for _ in range(self.graph.adj_matrix.shape[0])]

    def run(self) -> None:
        """Runs the algorithm"""
        raise NotImplementedError

    def evaluate(self) -> list:
        """Evaluates the clustering through various supervised metrics"""
        raise NotImplementedError


# Create a small test adjacency matrix for a simple undirected graph
# 5 nodes with some edges
adj_matrix = np.array([
    [0, 1, 1, 0, 0],
    [1, 0, 1, 1, 0],
    [1, 1, 0, 1, 0],
    [0, 1, 1, 0, 1],
    [0, 0, 0, 1, 0],
], dtype=np.float32)

# Create node features (5 nodes, 3 features)
features = np.array([
    [1.0, 0.0, 0.5],
    [0.0, 1.0, 0.3],
    [1.0, 1.0, 0.2],
    [0.5, 0.5, 0.8],
    [0.2, 0.8, 0.1],
], dtype=np.float32)

# Create node labels
labels = np.array([0, 0, 1, 1, 2], dtype=np.int32)

# Create the Graph object
graph = Graph(
    adj_matrix=adj_matrix,
    directed=False,
    features=features,
    labels=labels,
    dataset_name='test_graph'
)

# Create ARGS dict for Algorithm constructor
ARGS = {
    'graph': graph,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, networkx, numpy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Algorithm — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Algorithm 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
Discriminator Ran
ran on a synthesized input
timothewt/AdvancedGraphClustering/src/algorithms/deep/MVGRL.py
code served (permissive licence) · get_code("e8420d8fd1b6ff84")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, 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
from torch import nn

class Discriminator(nn.Module):
    """Discriminator module

	:param in_channels: Number of features in the hidden GCN layers
	:type in_channels: int
	"""

    def __init__(self, in_channels: int):
        super(Discriminator, self).__init__()
        self.bilinear: nn.Bilinear = nn.Bilinear(in_channels, in_channels, 1)

    def forward(self, ha: torch.tensor, hb: torch.tensor, Ha: torch.tensor, Hb: torch.tensor, Ha_corrupted: torch.tensor, Hb_corrupted: torch.tensor) -> torch.tensor:
        """ Forward pass of the discriminator computer the MI between the two representations of the views

		:param ha: Graph embedding of the original view
		:type ha: torch.tensor
		:param hb: Graph embedding of the diffused view
		:type hb: torch.tensor
		:param Ha: Node embedding of the original view
		:type Ha: torch.tensor
		:param Hb: Node embedding of the diffused view
		:type Hb: torch.tensor
		:param Ha_corrupted: Node embedding of the corrupted original view
		:type Ha_corrupted: torch.tensor
		:param Hb_corrupted: Node embedding of the corrupted diffused view
		:type Hb_corrupted: torch.tensor
		:return: Discriminator output
		:rtype: torch.tensor
		"""
        ha = ha.expand_as(Ha)
        hb = hb.expand_as(Hb)
        return torch.cat([self.bilinear(hb, Ha).squeeze(), self.bilinear(ha, Hb).squeeze(), self.bilinear(hb, Ha_corrupted).squeeze(), self.bilinear(ha, Hb_corrupted).squeeze()], dim=-1)


INIT_ARGS = {
    'in_channels': 4
}

ARGS = {
    'ha': torch.randn(1, 4),
    'hb': torch.randn(1, 4),
    'Ha': torch.randn(2, 4),
    'Hb': torch.randn(2, 4),
    'Ha_corrupted': torch.randn(2, 4),
    'Hb_corrupted': torch.randn(2, 4)
}

if __name__ == '__main__':
    discriminator = Discriminator(**INIT_ARGS)
    output = discriminator(**ARGS)
    print(f"Output shape: {output.shape}")
    print(f"Output: {output}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
GCN Ran
ran on a synthesized input
timothewt/AdvancedGraphClustering/src/algorithms/deep/MVGRL.py
code served (permissive licence) · get_code("8dc21381dd6d399e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) 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
from torch import nn
from torch_geometric.nn import GCNConv

class GCN(nn.Module):
    """Graph Convolutional Network (GCN) with as single layer

	:param in_channels: Number of input features
	:type in_channels: int
	:param out_channels: Number of output features
	:type out_channels: int
	"""

    def __init__(self, in_channels: int, out_channels: int):
        super(GCN, self).__init__()
        self.conv1: GCNConv = GCNConv(in_channels, out_channels)
        self.prelu1: nn.PReLU = nn.PReLU()
        self.conv2: GCNConv = GCNConv(out_channels, out_channels)
        self.prelu2: nn.PReLU = nn.PReLU()

    def forward(self, x: torch.tensor, edge_index: torch.tensor, edge_weight: torch.tensor=None) -> torch.tensor:
        """Forward pass

		:param x: Input features
		:type x: torch.tensor
		:param edge_index: Edge index tensor
		:type edge_index: torch.tensor
		:param edge_weight: Edge weight tensor (if any)
		:type edge_weight: torch.tensor
		:return: Embeddings of the nodes at each GCN layer
		:rtype: torch.tensor
		"""
        h1 = self.prelu1(self.conv1(x, edge_index, edge_weight))
        return (h1, self.prelu2(self.conv2(h1, edge_index, edge_weight)))


INIT_ARGS = {
    "in_channels": 4,
    "out_channels": 3,
}

ARGS = {
    "x": torch.randn(2, 4),
    "edge_index": torch.tensor([[0, 1], [1, 0]], dtype=torch.long).t().contiguous(),
    "edge_weight": None,
}

if __name__ == "__main__":
    model = GCN(**INIT_ARGS)
    output = model(**ARGS)
    print("Output shapes:", [o.shape for o in output])
    print("Success!")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch, torch_geometric — 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
Graph Ran
ran on a synthesized input · constructed an object; no result was computed
timothewt/AdvancedGraphClustering/src/algorithms/deep/MVGRL.py
code served (permissive licence) · get_code("735edbdc1444cbb5")
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 an instance of its own class, Graph: the run constructed the object and did not call it, so no result was computed. 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 networkx as nx

# Create a small adjacency matrix for a simple graph
# 5 nodes with some edges
adj_matrix = np.array([
    [0, 1, 0, 1, 0],
    [1, 0, 1, 0, 0],
    [0, 1, 0, 1, 1],
    [1, 0, 1, 0, 1],
    [0, 0, 1, 1, 0]
], dtype=np.float32)

# Create features for each node (5 nodes, 3 features each)
features = np.array([
    [1.0, 0.0, 0.5],
    [0.0, 1.0, 0.3],
    [0.5, 0.5, 0.2],
    [0.3, 0.7, 0.4],
    [0.8, 0.2, 0.6]
], dtype=np.float32)

# Create labels for each node
labels = np.array([0, 1, 0, 1, 0], dtype=np.int32)

ARGS = {
    'adj_matrix': adj_matrix,
    'directed': False,
    'features': features,
    'labels': labels,
    'dataset_name': 'test_graph'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, networkx, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Graph — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Graph 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
JSE_global_global Ran
ran; our contract draft was wrong, not the code
ycremar/DIG-SSL/sslgraph/contrastive/model/mvgrl.py
pointer only (licence: NONE) · get_code("4d9728453fe03cc6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ycremar/DIG-SSL 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.

JSE_local_global Ran
ran; our contract draft was wrong, not the code
ycremar/DIG-SSL/sslgraph/contrastive/model/mvgrl.py
pointer only (licence: NONE) · get_code("3d5b953b308a310f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ycremar/DIG-SSL 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.

JSE_local_global_negative_paired Ran
ran; our contract draft was wrong, not the code
ycremar/DIG-SSL/sslgraph/contrastive/model/mvgrl.py
pointer only (licence: NONE) · get_code("0fae77463fdd09d3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ycremar/DIG-SSL 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.

JSE_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ycremar/DIG-SSL/sslgraph/contrastive/model/mvgrl.py
pointer only (licence: NONE) · get_code("d7304af9c880b521")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ycremar/DIG-SSL 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.

MVGRLModel Ran
ran on a synthesized input
timothewt/AdvancedGraphClustering/src/algorithms/deep/MVGRL.py
code served (permissive licence) · get_code("223a803cd8563f7e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) 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
from torch import nn
from torch_geometric.nn import GCNConv

INIT_ARGS = {
    'in_channels': 4,
    'latent_dim': 8
}

# Create small synthetic data consistent with INIT_ARGS
num_nodes = 3
num_features = INIT_ARGS['in_channels']
latent_dim = INIT_ARGS['latent_dim']

# Node features: (num_nodes, in_channels)
x = torch.randn(num_nodes, num_features)

# Edge index for original graph: (2, num_edges)
edge_index = torch.tensor([
    [0, 1, 1, 2],
    [1, 0, 2, 1]
], dtype=torch.long)

# Edge index for diffused graph: (2, num_edges_diff)
diff_edge_index = torch.tensor([
    [0, 1, 1, 2, 0, 2],
    [1, 0, 2, 1, 2, 0]
], dtype=torch.long)

# Edge weights for diffused graph: (num_edges_diff,)
diff_edge_weight = torch.tensor([1.0, 1.0, 1.0, 1.0, 0.5, 0.5])

# Corrupted indices (simulating corruption by shuffling nodes)
corrupted_idx = torch.randperm(num_nodes)

ARGS = {
    'x': x,
    'edge_index': edge_index,
    'diff_edge_index': diff_edge_index,
    'diff_edge_weight': diff_edge_weight,
    'corrupted_idx': corrupted_idx
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
numpy, torch, torch_geometric — 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
MVGRL_enc Ran
ran on a synthesized input
ycremar/DIG-SSL/sslgraph/contrastive/model/mvgrl.py
pointer only (licence: NONE) · get_code("999ccf5675c0bb55")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ycremar/DIG-SSL 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.

ProjHead Ran
ran on a synthesized input
ycremar/DIG-SSL/sslgraph/contrastive/model/mvgrl.py
pointer only (licence: NONE) · get_code("a746050f57f068ee")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ycremar/DIG-SSL 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.

Projection Ran
ran on a synthesized input · constructed an object; no result was computed
timothewt/AdvancedGraphClustering/src/algorithms/deep/MVGRL.py
code served (permissive licence) · get_code("958dd6844f7b1b39")
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 an instance of its own class, Projection: the run constructed the object and did not call it, so no result was computed. 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
from torch import nn

torch.manual_seed(0)

ARGS = {
    "latent_dim": 4
}
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 Projection — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Projection 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
Readout Ran
ran on a synthesized input
timothewt/AdvancedGraphClustering/src/algorithms/deep/MVGRL.py
code served (permissive licence) · get_code("c956f8c1a7e84185")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, 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
from torch import nn
from torch.nn import functional as F

class Readout(nn.Module):
    """Readout function for a one-layer GCN model
	"""

    def __init__(self, latent_dim: int):
        super(Readout, self).__init__()
        self.fc: nn.Linear = nn.Linear(latent_dim * 2, latent_dim)

    def forward(self, h1: torch.tensor, h2: torch.tensor) -> torch.tensor:
        """Pooling layer

		:param h: Node embeddings at the first GCN layer
		:type h: torch.tensor
		:return: Pooled embeddings
		:rtype: torch.tensor
		"""
        return F.sigmoid(self.fc(torch.cat([h1.mean(dim=-2), h2.mean(dim=-2)], dim=-1)))


INIT_ARGS = {
    'latent_dim': 4
}

ARGS = {
    'h1': torch.randn(2, 3, 4),
    'h2': torch.randn(2, 3, 4)
}

if __name__ == '__main__':
    model = Readout(**INIT_ARGS)
    output = model(**ARGS)
    print(f"Output shape: {output.shape}")
    print(f"Output: {output}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
compute_diffusion_matrix Ran
ran, violated the contract we drafted
timothewt/AdvancedGraphClustering/src/algorithms/deep/MVGRL.py
code served (permissive licence) · get_code("cfac6c086d0b45f8")
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 2, dtype family float, shape (5, 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 numpy as np

# Create a small adjacency matrix (5x5 for a simple graph)
adj = np.array([
    [0, 1, 1, 0, 0],
    [1, 0, 1, 1, 0],
    [1, 1, 0, 1, 1],
    [0, 1, 1, 0, 1],
    [0, 0, 1, 1, 0]
], dtype=np.float32)

alpha = 0.2

ARGS = {
    "adj": adj,
    "alpha": alpha
}
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 2, dtype family float, shape (5, 5) — shape (5, 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
diffusion Ran
ran; our contract draft was wrong, not the code
ycremar/DIG-SSL/sslgraph/contrastive/model/mvgrl.py
pointer only (licence: NONE) · get_code("95811669b9827928")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ycremar/DIG-SSL 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.

get_clusters Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
timothewt/AdvancedGraphClustering/src/algorithms/deep/MVGRL.py
code served (permissive licence) · get_code("6c35beaf2f4f4958")
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 1, dtype family int, shape (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 numpy as np
from sklearn.cluster import KMeans

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

# Create a small latent space matrix (n_samples=5, n_features=4)
z = np.random.randn(5, 4).astype(np.float32)

# Set number of clusters
n_clusters = 3

# Set clustering method
method = 'kmeans'

# Construct ARGS dictionary
ARGS = {
    'z': z,
    'n_clusters': n_clusters,
    'method': method
}
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 ndarray, ndim 1, dtype family int, shape (5,) — shape (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
BaseTransform Not yet run
unverified (harvested, no recorded run)
dmlc/dgl/python/dgl/transforms/module.py
code served (permissive licence) · get_code("41b7f635984ee5af")
How it ran

no invocation recorded.

Contrastive Not yet run
unverified (harvested, no recorded run)
ycremar/DIG-SSL/sslgraph/contrastive/model/mvgrl.py
pointer only (licence: NONE) · get_code("f70262e4e6cc1fb3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ycremar/DIG-SSL 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.

DeepAlgorithm Not yet run
unverified (harvested, no recorded run)
timothewt/AdvancedGraphClustering/src/algorithms/deep/MVGRL.py
code served (permissive licence) · get_code("848f5e9c8a204f34")
How it ran

no invocation recorded.

FeatMask Not yet run
unverified (harvested, no recorded run)
dmlc/dgl/python/dgl/transforms/module.py
code served (permissive licence) · get_code("d1837f554f3ba0c1")
How it ran

no invocation recorded.

MVGRL Not yet run
unverified (harvested, no recorded run)
timothewt/AdvancedGraphClustering/src/algorithms/deep/MVGRL.py
code served (permissive licence) · get_code("f742d0b48473328a")
How it ran

no invocation recorded.

MVGRL Not yet run
unverified (harvested, no recorded run)
ycremar/DIG-SSL/sslgraph/contrastive/model/mvgrl.py
pointer only (licence: NONE) · get_code("e59b03802d233cb8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ycremar/DIG-SSL 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 22 samples lifted from this paper's linked repositories, 22 carry a function identity and 0 do not. Of the 22 distinct functions with an identity, 5 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 5 later) and 17 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
Contrastive
brick of this paper's assembly: helper
1 other paper
1 later
2010.13902 (2020-10)
Graph Contrastive Learning with Augmentations
JSE_global_global
brick of this paper's assembly: helper
1 other paper
1 later
2508.07117 (2025-08)
From Nodes to Narratives: Explaining Graph Neural Networks with LLMs and Graph Context
JSE_local_global
brick of this paper's assembly: helper
1 other paper
1 later
2508.07117 (2025-08)
From Nodes to Narratives: Explaining Graph Neural Networks with LLMs and Graph Context
JSE_local_global_negative_paired
brick of this paper's assembly: helper
1 other paper
1 later
2508.07117 (2025-08)
From Nodes to Narratives: Explaining Graph Neural Networks with LLMs and Graph Context
JSE_loss
brick of this paper's assembly: helper
1 other paper
1 later
2508.07117 (2025-08)
From Nodes to Narratives: Explaining Graph Neural Networks with LLMs and Graph Context

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

We introduce a self-supervised approach for learning node and graph level representations by contrasting structural views of graphs. We show that unlike visual representation learning, increasing the number of views to more than two or contrasting multi-scale encodings do not improve performance, and the best performance is achieved by contrasting encodings from first-order neighbors and a graph diffusion. We achieve new state-ofthe-art results in self-supervised learning on 8 out of 8 node and graph classification benchmarks under the linear evaluation protocol. For example, on Cora (node) and Reddit-Binary (graph) classification benchmarks, we achieve 86.8% and 84.5% accuracy, which are 5.5% and 2.4% relative improvements over previous state-of-the-art. When compared to supervised baselines, our approach outperforms them in 4 out of 8 benchmarks.

For agents

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

get_harvested_code_for_paper("2006.05582")
get_code_for_paper("2006.05582")
have("2006.05582")

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

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

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

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

Connect an agent — have() is free.