SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2210.12048 · ICLR · 2023

Ollivier-Ricci Curvature for Hypergraphs: A Unified Framework

Bastian Rieck, Corinna Coupette, Sebastian Dalleiger

arXiv · PDF · Open in the Atlas

Code that ran

9 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; 0 honoured the contract we drafted, 0 violated it and 9 have no contract verdict; 0 failures of our instrument; 3 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/2210.12048.json · badge: /api/ran/2210.12048.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
aidos-lab/orchid canonical (classifier label)
classifier basis not recorded on the link
9 ran · 3 no recorded run
FunctionStatusWhere it lives
bootstrapping Ran
ran on a synthesized input
aidos-lab/orchid/experiments/mmd.py
code served (permissive licence) · get_code("7f045c3291db3117")
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 float, 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

def dummy_fn(x_subset, y_subset):
    """A simple function that computes mean difference between two arrays."""
    return np.mean(y_subset) - np.mean(x_subset)

x = np.random.randn(5, 4)
y = np.random.randn(3, 4)

ARGS = {
    "x": x,
    "y": y,
    "fn": dummy_fn,
    "iterations": 5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tqdm — 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 float, 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
compute_edge_cardinalities Ran
ran on a synthesized input
aidos-lab/orchid/experiments/features.py
code served (permissive licence) · get_code("5b980d57979fdd3a")
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 list, ndim 1, dtype family int; 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 scipy.sparse as sp
import numpy as np

torch.manual_seed(0)

# The function expects M_csc to be a sparse matrix in CSC (Compressed Sparse Column) format
# It accesses M_csc[:, j] for each column j and calls .nnz on it
# It also accesses M_csc.shape[-1] to get the number of columns

# Create a small sparse matrix in CSC format
# We'll make a 4x3 matrix (4 rows, 3 columns) with some non-zero entries
data = np.array([1, 2, 3, 4, 5])
row = np.array([0, 1, 2, 3, 1])
col = np.array([0, 0, 1, 2, 2])

M_csc = sp.csr_matrix((data, (row, col)), shape=(4, 3)).tocsc()

ARGS = {
    "M_csc": M_csc
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family int — a list 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
compute_edge_neighborhood_sizes Ran
ran on a synthesized input
aidos-lab/orchid/experiments/features.py
code served (permissive licence) · get_code("1e6674c180020caa")
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 list, ndim 1, dtype family int; 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 numpy as np
from scipy import sparse

torch.manual_seed(0)

# Create small sparse matrices in CSR and CSC formats
# The function accesses M_csr and M_csc as if they support indexing and .nonzero() operations
# These are scipy sparse matrices

# Create a small sample sparse matrix (4x3)
data = np.array([1, 2, 3, 4, 5])
row = np.array([0, 1, 2, 2, 3])
col = np.array([0, 1, 0, 2, 1])

# Build CSR format
M_csr = sparse.csr_matrix((data, (row, col)), shape=(4, 3))

# Build CSC format (same data, different format)
M_csc = sparse.csc_matrix((data, (row, col)), shape=(4, 3))

ARGS = {
    'M_csr': M_csr,
    'M_csc': M_csc,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family int — a list 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
compute_node_degrees Ran
ran on a synthesized input
aidos-lab/orchid/experiments/features.py
code served (permissive licence) · get_code("bd3a191e5a97ad9b")
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 list, ndim 1, dtype family int; 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 scipy.sparse as sp
import numpy as np

torch.manual_seed(0)

# Construct a small sparse CSR matrix
# The function accesses M_csr[i, :].nnz for each row
# .nnz gives the number of non-zero elements in that row
# We need a scipy sparse CSR matrix

# Create a small 4x3 sparse matrix with some non-zero entries
data = np.array([1, 2, 3, 4, 5])
row = np.array([0, 0, 1, 2, 3])
col = np.array([0, 2, 1, 0, 2])
M_csr = sp.csr_matrix((data, (row, col)), shape=(4, 3))

ARGS = {
    "M_csr": M_csr
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family int — a list 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
eemdkernel Ran
ran on a synthesized input
aidos-lab/orchid/experiments/common.py
code served (permissive licence) · get_code("ca82ca4f86965c16")
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 float, 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 math
import ot
import numpy as np

# Create small 1D arrays for the EMD computation
# x and y should be 1D arrays (distributions or point clouds)
x = np.array([0.1, 0.2, 0.3, 0.4], dtype=np.float64)
y = np.array([0.15, 0.25, 0.35, 0.45], dtype=np.float64)

# gamma is a scalar parameter for the exponential kernel
gamma = 1.0

ARGS = {
    "x": x,
    "y": y,
    "gamma": gamma
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, ot — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, 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
exp_kernel Ran
ran on a synthesized input
aidos-lab/orchid/experiments/node-clustering.py
code served (permissive licence) · get_code("2e2a9e5c77aeab04")
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 (3, 3) 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

# exp_kernel takes W and gamma as parameters
# W should be a numeric array/matrix that exp_kernel will multiply by -gamma
# gamma should be a scalar that controls the exponential decay

# Create a small weight matrix
W = np.array([[1.0, 2.0, 3.0],
              [4.0, 5.0, 6.0],
              [7.0, 8.0, 9.0]])

# Create a scalar gamma parameter
gamma = 0.5

ARGS = {
    "W": W,
    "gamma": gamma
}
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 (3, 3) — shape (3, 3) 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
mmd Ran
ran on a synthesized input
aidos-lab/orchid/experiments/mmd.py
code served (permissive licence) · get_code("ef5629d6ce56031e")
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 float64, ndim 0, 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 numpy as np

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

# Create small sample data for x and y
# x and y should be 2D arrays (batch_size, features)
x = np.random.randn(2, 4).astype(np.float64)
y = np.random.randn(2, 4).astype(np.float64)

# Define sigma as a positive scalar value
sigma = 1.0

ARGS = {
    "x": x,
    "y": y,
    "sigma": sigma,
}
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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
sncluster Ran
ran on a synthesized input
aidos-lab/orchid/experiments/node-clustering.py
code served (permissive licence) · get_code("dc1cb2ab92b08713")
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 list, 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 numpy as np
from unittest.mock import Mock

torch.manual_seed(0)

# Create a mock object that simulates the 'sn' parameter
# The function calls several clustering methods on it, each returning array-like results
class MockSpectralNetwork:
    def __init__(self, n_samples=5):
        self.n_samples = n_samples
    
    def spectral_cluster_adjacency_reg(self, k):
        """Return cluster labels as numpy array"""
        return np.array([0, 1, 0, 1, 0])
    
    def spectral_cluster_bnc(self, k):
        """Return cluster labels as numpy array"""
        return np.array([1, 0, 1, 0, 1])
    
    def spectral_cluster_laplacian(self, k):
        """Return cluster labels as numpy array"""
        return np.array([0, 0, 1, 1, 0])
    
    def SPONGE(self, k):
        """Return cluster labels as numpy array"""
        return np.array([1, 1, 0, 0, 1])
    
    def SPONGE_sym(self, k):
        """Return cluster labels as numpy array"""
        return np.array([0, 1, 1, 0, 0])
    
    def SDP_cluster(self, k, normalisation='none'):
        """Return cluster labels as numpy array"""
        return np.array([1, 0, 0, 1, 1])

# Construct the arguments
sn = MockSpectralNetwork(n_samples=5)
k = 2
gamma = 0.5
feature_name = "test_feature"
kernel_name = "rbf"

ARGS = {
    "sn": sn,
    "k": k,
    "gamma": gamma,
    "feature_name": feature_name,
    "kernel_name": kernel_name
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list 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
wasserstein_kernel Ran
ran on a synthesized input
aidos-lab/orchid/experiments/common.py
code served (permissive licence) · get_code("2878d24e61ec7e5f")
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 float, 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 math
import numpy as np
from scipy.stats import wasserstein_distance

# Create small 1D arrays for wasserstein_distance
x = np.array([1.0, 2.0, 3.0, 4.0])
y = np.array([1.5, 2.5, 3.5, 4.5])

# gamma parameter for exponential decay
gamma = 0.5

ARGS = {
    "x": x,
    "y": y,
    "gamma": gamma
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, 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
clustering Not yet run
unverified (harvested, no recorded run)
aidos-lab/orchid/experiments/graph-clustering.py
code served (permissive licence) · get_code("8e91ec3a43c6a9c2")
How it ran

no invocation recorded.

kpca Not yet run
unverified (harvested, no recorded run)
aidos-lab/orchid/experiments/kpca.py
code served (permissive licence) · get_code("c245a87218b4bbf1")
How it ran

no invocation recorded.

mmd_emd Not yet run
unverified (harvested, no recorded run)
aidos-lab/orchid/experiments/mmd.py
code served (permissive licence) · get_code("f31e66047dcb61de")
How it ran

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, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 12 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.

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

Bridging geometry and topology, curvature is a powerful and expressive invariant. While the utility of curvature has been theoretically and empirically confirmed in the context of manifolds and graphs, its generalization to the emerging domain of hypergraphs has remained largely unexplored. On graphs, the Ollivier-Ricci curvature measures differences between random walks via Wasserstein distances, thus grounding a geometric concept in ideas from probability theory and optimal transport. We develop ORCHID, a flexible framework generalizing Ollivier-Ricci curvature to hypergraphs, and prove that the resulting curvatures have favorable theoretical properties. Through extensive experiments on synthetic and real-world hypergraphs from different domains, we demonstrate that ORCHID curvatures are both scalable and useful to perform a variety of hypergraph tasks in practice.

For agents

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

get_harvested_code_for_paper("2210.12048")
get_code_for_paper("2210.12048")
have("2210.12048")

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

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

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

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

Connect an agent — have() is free.