Ollivier–Ricci Curvature
Ollivier-Ricci curvature (kappa_OR) and Forman-Ricci curvature generalize Riemannian geometry via 1-Wasserstein optimal transport to discrete graphs, identifying negative-curvature bottleneck bridges in human pangenome variation graphs and protein allosteric networks.
In Riemannian differential geometry, Ricci curvature (Ric) quantifies how the local volume of a geodesic ball—or the distance between two small spheres transported along parallel geodesics—deviates from flat Euclidean space (κ = 0): on a positively curved sphere (κ > 0), parallel geodesics converge so balls are closer together than their centers, whereas on a negatively curved hyperbolic saddle (κ < 0), geodesics diverge exponentially (exp(√|κ|·d)). Because molecular structures, human pangenome variation graphs (GFA), and protein Residue Interaction Networks (RINs) are discrete mathematical graphs G = (V, E, w) rather than smooth differentiable manifolds, classical partial differential operators cannot be applied directly.
Ollivier–Ricci curvature (κOR, introduced by Yann Ollivier in 2007–2009) and Forman–Ricci combinatorial curvature (κFR, Robin Forman, 2003) solve this problem by lifting Ricci curvature to discrete metric spaces via 1-Wasserstein optimal transport (Earth Mover's Distance, W1) and CW-complex combinatorics, complemented by Topological Data Analysis (TDA) and the first Betti number (β1 = |E| − |V| + C). Paired with spectral graph theory (graph Laplacian and Fiedler value), discrete Ricci curvature provides a parameter-free geometric diagnostic across structural biophysics and genomics: edges embedded inside densely interconnected α-helices, β-sheets, or conserved haplotype cliques exhibit positive curvature (κOR > 0), whereas inter-domain allosteric bottleneck bridges, cryptic ligand-binding hinges (KRAS Switch-II, EGFR, ALK), and pangenome structural-variant recombination breakpoints (CACNA1C, CYP2D6, APOE) exhibit strongly negative curvature (κOR < −0.35).
Mathematical Formulation of Discrete Ricci Curvature and Betti Numbers
Lazy Random-Walk Probability Measures and 1-Wasserstein Optimal Transport (W1)
Let G = (V, E, w) be an undirected, connected, positively weighted graph with vertex set V, edge set E, shortest-path metric d(u, v), and vertex degree deg(u) = ∑x ~ u w(u, x). To compare the local geometry around two adjacent vertices u and v connected by an edge e = (u, v) ∈ E, Ollivier–Ricci curvature replaces the infinitesimal geodesic sphere around each vertex with a one-step lazy random-walk probability measure μu^α supported on u and its immediate 1-hop neighborhood N(u) (with laziness parameter α ∈ [0, 1), conventionally α = 0 or α = 0.5):
- μu^α(x) = α, if x = u
- μu^α(x) = (1 − α) × [w(u, x) / deg(u)], if (u, x) ∈ E
- μu^α(x) = 0, otherwise.
The 1-Wasserstein distance (W1, Kantorovich–Rubinstein / Earth Mover's Distance) between the two neighborhood probability distributions μu^α and μv^α is defined as the minimum total transport cost required to move probability mass from μu^α to μv^α across the graph metric d(x, y), solved via linear programming:
W1(μu^α, μv^α) = infΠ ∈ Γ(μu^α, μv^α) ∑x ∈ V ∑y ∈ V Π(x, y) · d(x, y)
where Γ(μu^α, μv^α) is the set of all joint coupling matrices Π(x, y) ≥ 0 whose row and column marginals equal μu^α and μv^α. The Ollivier–Ricci curvature κOR(u, v) along edge e = (u, v) is then defined as:
κOR(u, v) = 1 − [ W1(μu^α, μv^α) / d(u, v) ]
Geometric Interpretation (κOR > 0, κOR = 0, κOR < 0), Forman–Ricci (κFR), and Betti Number (β1)
The sign and magnitude of κOR(u, v) (bounded within [−2, +1) for α = 0) reflect three canonical local graph topologies:
- Positively Curved Cliques and Triangles (κOR > 0): When u and v belong to a complete clique Kn or share many common neighbors (triangles), their neighborhood distributions μu^α and μv^α overlap heavily, so very little probability mass needs to be moved (W1 < d(u, v)), yielding κOR > 0 (analogous to a sphere).
- Flat Grid Lattices (κOR = 0): On a regular 2D Cartesian grid Z2 or cycle where N(u) and N(v) can be translated in parallel by distance d(u, v), W1(μu^α, μv^α) = d(u, v), yielding κOR = 0.
- Negatively Curved Bottleneck Bridges and Trees (κOR < 0): When e = (u, v) is a cut-edge bridge or hyperbolic tree branch connecting two high-degree hubs (deg(u), deg(v) ≫ 1) that share no common neighbors or short cycles, transporting mass from N(u) \ {v} to N(v) \ {u} requires every path to traverse N(u) → u → v → N(v) (3× the edge length d(u, v)), driving W1 > d(u, v) and yielding strongly negative curvature (κOR → −1.0 to −2.0).
For ultra-large pangenome graphs (>106 edges) where solving linear programs per edge is computationally intensive, Forman–Ricci curvature (κFR) provides an O(1) combinatorial approximation for unweighted 1-dimensional graphs (κFR(u, v) = 4 − deg(u) − deg(v) + 3 × |Δ(u, v)| when augmented with 2-cell triangles Δ(u, v)), while the first Betti number (β1 = |E| − |V| + C, where C is the number of connected components) measures the global rank of the 1st homology group H1(G)—counting the exact number of independent topological cycles (nested structural-variant bubbles or reticulate recombination loops).
| Topological / Geometric Metric | Mathematical Formula | Positively Curved Module / Clique | Flat Collinear Backbone | Negatively Curved Bottleneck Bridge | ||||
|---|---|---|---|---|---|---|---|---|
| Ollivier–Ricci Curvature (κOR) | 1 − W1(μu, μv) / d(u, v) | +0.25 to +0.85 (triangles / Kn cliques) | ~ 0.00 (collinear path / 2D grid) | −0.35 to −1.65 (inter-domain / SV bridge) | ||||
| Augmented Forman–Ricci (κFR) | 4 − deg(u) − deg(v) + 3 | Δ(u,v) | > 0 (triangle-rich secondary structure) | +2 (internal degree-2 chain) | ≪ −4 (high-degree hub bridge without Δ) | |||
| First Betti Number (β1) | β1 = | E | − | V | + C | High local Δ (2-simplices filled) | β1 = 0 (single reference path) | High β1 (nested SV bubbles / VNTR cycles) |
| Pangenome Graph Interpretation | HPRC GFA variation segments | Conserved multi-copy gene clusters | Invariant housekeeping exons (dK2P ≈ 0) | Recombination hotspots & SV breakpoints | ||||
| Protein RIN Interpretation | Cα–Cα / heavy-atom contact < 4.5 Å | Rigid α-helix & β-sheet hydrophobic cores | Extended surface linkers | Allosteric communication pathways & hinges |
Pangenome Variation Graphs (HPRC GFA): Identifying Recombination and SV Bottlenecks
Bidirected Sequence Graphs and Nested Bubble Cyclomatic Complexity (β1)
In the Human Pangenome Reference Consortium (HPRC) and microbial pangenomics, multi-assembly variation is encoded as a bidirected Graphical Fragment Assembly (GFA) sequence graph G = (V, E), where vertices v ∈ V (S-lines) represent conserved nucleotide sequence segments (1 bp to >10 kb) and edges e ∈ E (L-lines) represent observed haplotype transitions between segments across phased assemblies (CHM13-T2T, GRCh38, and 94+ diploid human haplotypes).
In collinear, non-recombining housekeeping regions, the pangenome graph reduces to a simple chain interspersed with isolated single-nucleotide polymorphism (SNP) superbubbles (2-vertex, 2-edge diamonds where β1 increments by +1 per biallelic SNP). By contrast, medically complex structural-variant (SV) loci—such as the Intron 3 30-bp tandem CACNA1C psychiatric enhancer VNTR (Chr12p13.33), the CYP2D6–CYP2D7 (Chr22q13.2) pharmacogenomic hybrid tandem duplication locus, the APOE–TOMM40 (Chr19q13.32) Alzheimer's locus, and the MHC Class III C4A/C4B (RCCX) module—exhibit elevated cyclomatic loop complexity (β1 / |V| > 0.35) due to nested indel bubbles, copy-number cycles, and non-allelic homologous recombination (NAHR).
Negative Ollivier–Ricci Curvature (κOR < −0.40) at Structural-Variant Breakpoints
Computing κOR(u, v) across HPRC pangenome graphs reveals a striking geometric dichotomy:
- Conserved Flanks vs. Divergent Alt-Allele Bubbles: Edges sitting precisely at structural-variant entry/exit breakpoints (bifurcation/reconvergence anchor nodes) where a conserved diploid reference stem (high haplotype traversal weight, deg ≥ 4) splits into multiple mutually exclusive structural haplotypes (such as a 6.4 kb HERV insertion, an Alu-mediated inversion, or a VNTR repeat array) exhibit strongly negative Ollivier–Ricci curvature (κOR = −0.42 to −1.25). Because haplotype paths diverge onto non-overlapping alternative bubbles without short triangular cross-links, the 1-Wasserstein transport distance W1(μu, μv) expands across the bubble perimeter.
- Ricci Flow Community Decomposition (Ricci-Flow Surgery): Analogous to Grigori Perelman's Ricci flow with surgery on 3-manifolds (d/dt gij = −2 Ricij), discrete Ollivier–Ricci flow iteratively updates edge weights via d(k+1)(u, v) = d(k)(u, v) × (1 − κOR(k)(u, v)): positively curved intra-haplotype blocks contract (d → 0), while negatively curved recombination/breakpoint bridges stretch exponentially (d(t) ≈ d(0) · exp(|κOR| · t) → ∞). Cutting edges whose stretched distance exceeds a threshold automatically partitions complex pangenome graphs into orthologous haplotype synteny blocks (haploblocks) without arbitrary window sizes.
Protein Residue Interaction Networks (RINs) and Allosteric Pocket Discovery
Allosteric Signal Transmission Along Negative-Curvature Bridges (KRAS, EGFR, ALK)
Any three-dimensional protein structure (PDB or AlphaFold3 coordinates) can be represented as an atomic-level Residue Interaction Network (RIN) in which each amino acid residue i (Cα or Cβ atom) is a vertex vi ∈ V and an edge (vi, vj) ∈ E is placed whenever two residues form non-covalent heavy-atom contacts within d ≤ 4.5–5.0 Å (weighted by hydrogen-bond, salt-bridge, or direct coupling analysis (DCA) Potts evolutionary epistatic energy ||Jij||).
Within a globular protein RIN:
- Rigid Secondary-Structure Cores (κOR > +0.20): Residues inside α-helices (i to i+3, i+4 hydrogen-bonded cliques) and β-sheets form dense triangular contact meshes with strongly positive Ollivier–Ricci curvature, acting as rigid mechanical blocks.
- Allosteric Bottleneck Bridges (κOR < −0.35 and High Edge Betweenness): Long-range allosteric communication between a distal regulatory pocket and an orthosteric catalytic site—such as between the KRAS Switch-II cryptic pocket (His95/Tyr96/Cys12) and the effector-binding Switch-I loop (residues 30–38), or between the EGFR αC-helix (Leu858Arg) and the Cys797 hinge—must funnel through a small number of inter-subdomain contact bridges. Because these inter-domain hinge edges connect two dense, quasi-independent RIN communities with minimal local triangulation, they display sharp negative Ollivier–Ricci curvature minima (κOR = −0.38 to −0.85) coupled with high shortest-path edge betweenness centrality (CB(e)).
Synergy with Cryptic Pocket Prediction (PocketMiner) and Mutational Escape Analysis
Integrating discrete κOR curvature with geometric deep learning (PocketMiner graph neural networks, Meller et al., 2023) and algebraic connectivity (Fiedler value λ2) enables rapid structural drug discovery across the human proteome:
- Cryptic Allosteric Pocket Identification: Static apo crystal structures often appear flat and undruggable (KRAS, HIF-2α PAS-B, SHP2, MYC). Scanning the apo RIN for clusters of surface-adjacent edges with strongly negative κOR < −0.35 and low local Fiedler algebraic connectivity (Δλ2 sensitivity upon edge removal) pinpoints mechanically compliant inter-lobe hinges capable of opening into druggable cryptic cavities during microsecond molecular dynamics fluctuations.
- Allosteric Resistance Mutation Mapping: Somatic cancer resistance mutations that occur outside the primary orthosteric drug pocket (such as KRAS Y96D/R68S or ALK L1198F) map disproportionately to negative-curvature bottleneck nodes (κOR < −0.40) that gate the conformational transition between the active and inactive states.
Frequently Asked Questions
How does Ollivier–Ricci curvature (κ_OR) differ from standard graph clustering coefficient or edge betweenness centrality?
Whereas the local clustering coefficient counts only 3-node triangles (cycles of length 3) and fails entirely on bipartite graphs, grids, or 4-/5-membered rings (where clustering = 0), Ollivier–Ricci curvature (κOR) uses optimal transport (W1) across the full graph metric and gracefully distinguishes flat 4-cycles (κOR = 0 on a 2D grid) from negatively curved trees (κOR < 0). Conversely, while edge betweenness centrality (CB) is a global O(|V|·|E|) path-counting metric sensitive to distant graph boundary artifacts, κOR is a strictly intrinsic, local 1-hop geometric invariant computable independently on every edge in parallel.
Why is Forman–Ricci curvature (κ_FR) often augmented with 2-dimensional triangular faces (Δ) in biological networks?
In Robin Forman's original 1-dimensional CW-complex formula for a simple graph without 2-cells (κFR(u, v) = 4 − deg(u) − deg(v)), every edge connecting vertices of degree > 2 automatically receives a negative value—even inside a complete clique Kn where the geometry is maximally spherical! Augmented Forman–Ricci curvature (Samal et al., 2018) promotes 3-cycles (triangles Δ(u, v)) to 2-dimensional simplicial faces, adding +3 × |Δ(u, v)| to the curvature formula so that triangle-dense protein α-helices and haplotype cliques correctly yield positive curvature (κFR > 0), matching κOR with r > 0.85 correlation at 100× faster runtime.
How do persistent homology barcodes (Topological Data Analysis) complement Ollivier–Ricci curvature in protein folding and pangenomics?
While Ollivier–Ricci curvature measures local metric convergence/divergence along individual edges, Persistent Homology (TDA) grows a continuous filtration radius r (Vietoris–Rips or Alpha simplicial complex) across 3D protein coordinates or pairwise genomic distance matrices and tracks the birth (rbirth) and death (rdeath) of topological features across dimensions: H0 (connected components), H1 (1D loops / tunnels / reticulate recombination cycles), and H2 (2D enclosed cavities / cryptic ligand pockets such as the 290 ų HIF-2α PAS-B cavity). Combining H2 persistence lifetimes (rdeath − rbirth) with surrounding κOR < −0.35 hinge edges identifies cavities that are both volumetrically large enough to bind a drug (H2) and mechanically accessible (κOR).
References
- Ollivier, Y. (2009). "Ricci curvature of Markov chains on metric spaces." Journal of Functional Analysis, 256(3), 810–864. https://doi.org/10.1016/j.jfa.2008.11.001
- Sandhu, R., Georgiou, T., Reznik, E., et al. (2015). "Graph curvature for differentiating cancer networks." Scientific Reports, 5(1), 12323. https://doi.org/10.1038/srep12323
- Sia, J., Jonckheere, E., & Bogdan, P. (2019). "Ollivier-Ricci curvature-based method to community detection in complex networks." Scientific Reports, 9(1), 9800. https://doi.org/10.1038/s41598-019-46079-x
- Meller, A., Ward, M., Borowsky, J., et al. (2023). "Accelerating cryptic pocket discovery using AlphaFold." Nature Communications, 14(1), 1177. https://doi.org/10.1038/s41467-023-36699-3