SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1907.03993 · 2019

Community Detection on Networks with Ricci Flow

arXiv · PDF · Open in the Atlas

Code that ran

3 of 3 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 2 have no contract verdict; 1 failure of our instrument; 0 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/1907.03993.json · badge: /api/ran/1907.03993.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
saibalmars/GraphRicciCurvature canonical (classifier label)
classifier basis: census
3 ran · 0 no recorded run
FunctionStatusWhere it lives
ARI Ran
ran on a synthesized input
saibalmars/GraphRicciCurvature/my_surgery.py
code served (permissive licence) · get_code("aa26b999d3506063")
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 networkx as nx
import numpy as np

# Create a NetworkX graph with node attributes
G = nx.Graph()

# Add nodes with a 'club' attribute (ground truth clustering label)
# Node 0-3 belong to club 'A', nodes 4-7 belong to club 'B'
nodes_data = [
    (0, {'club': 'A'}),
    (1, {'club': 'A'}),
    (2, {'club': 'A'}),
    (3, {'club': 'A'}),
    (4, {'club': 'B'}),
    (5, {'club': 'B'}),
    (6, {'club': 'B'}),
    (7, {'club': 'B'}),
]

G.add_nodes_from(nodes_data)

# Add some edges to make it a connected graph
G.add_edges_from([
    (0, 1), (1, 2), (2, 3), (3, 0),  # edges within club A
    (4, 5), (5, 6), (6, 7), (7, 4),  # edges within club B
    (0, 4),  # cross-cluster edge
])

# Test with dict clustering format
clustering_dict = {0: 0, 1: 0, 2: 0, 3: 0, 4: 1, 5: 1, 6: 1, 7: 1}

# Test with list of sets clustering format
clustering_sets = [{0, 1, 2, 3}, {4, 5, 6, 7}]

# Test with list clustering format
clustering_list = [0, 0, 0, 0, 1, 1, 1, 1]

# Use the dict format as the primary test case
ARGS = {
    'G': G,
    'clustering': clustering_dict,
    'clustering_label': 'club'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
networkx, numpy, sklearn — 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
cut_graph_by_cutoff Ran
ran; our contract draft was wrong, not the code
saibalmars/GraphRicciCurvature/GraphRicciCurvature/util.py
code served (permissive licence) · get_code("18fcc850d983f5a8")
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 networkx as nx

# Create a simple graph with weighted edges
G = nx.Graph()
G.add_edge(0, 1, weight=0.5)
G.add_edge(1, 2, weight=1.5)
G.add_edge(2, 3, weight=0.8)
G.add_edge(3, 0, weight=2.2)
G.add_edge(0, 2, weight=1.1)

ARGS = {
    'G_origin': G,
    'cutoff': 1.0,
    'weight': 'weight'
}
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
my_surgery Ran
ran on a synthesized input
saibalmars/GraphRicciCurvature/my_surgery.py
code served (permissive licence) · get_code("816b3bebdbd0cd14")
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 networkx as nx
import numpy as np

# Create a small NetworkX graph with weighted edges
G_origin = nx.Graph()

# Add nodes with a 'club' attribute for ground truth clustering
G_origin.add_node(0, club='A')
G_origin.add_node(1, club='A')
G_origin.add_node(2, club='A')
G_origin.add_node(3, club='B')
G_origin.add_node(4, club='B')
G_origin.add_node(5, club='B')

# Add weighted edges
G_origin.add_edge(0, 1, weight=0.5)
G_origin.add_edge(1, 2, weight=0.6)
G_origin.add_edge(0, 2, weight=0.7)
G_origin.add_edge(3, 4, weight=0.8)
G_origin.add_edge(4, 5, weight=0.9)
G_origin.add_edge(3, 5, weight=1.2)
G_origin.add_edge(2, 3, weight=1.5)  # Inter-cluster edge with high weight

ARGS = {
    'G_origin': G_origin,
    'weight': 'weight',
    'cut': 0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
networkx, numpy, sklearn — 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

Also present in other papers' code

Of 3 samples lifted from this paper's linked repositories, 3 carry a function identity and 0 do not. Of the 3 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 2 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
cut_graph_by_cutoff 1 other paper
1 later
2210.11790 (2022-10)
FoSR: First-order spectral rewiring for addressing oversquashing in GNNs

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

Many complex networks in the real world have community structures -- groups of well-connected nodes with important functional roles. It has been well recognized that the identification of communities bears numerous practical applications. While existing approaches mainly apply statistical or graph theoretical/combinatorial methods for community detection, in this paper, we present a novel geometric approach which enables us to borrow powerful classical geometric methods and properties. By considering networks as geometric objects and communities in a network as a geometric decomposition, we apply curvature and discrete Ricci flow, which have been used to decompose smooth manifolds with astonishing successes in mathematics, to break down communities in networks. We tested our method on networks with ground-truth community structures, and experimentally confirmed the effectiveness of this geometric approach.

For agents

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

get_harvested_code_for_paper("1907.03993")
get_code_for_paper("1907.03993")
have("1907.03993")

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

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

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

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

Connect an agent — have() is free.