Dynamic network curvature analysis was conducted by simulating diffusion over the weighted network and measuring geometric changes18,21. First, the graph Laplacian was determined as
where I is the identity matrix, is the shifted correlation matrix of edges in the network and is the weighted degree or row-sum of .
The graph Laplacian represents the divergence of weighted differences in a discrete graph and served as a crucial tool to efficiently simulate diffusion at multiple pseudotime/scale parameters . A diffusion distribution matrix was computed using the matrix exponential of :
Each row of indicates a probability distribution corresponding to one diffusion process with an initial Dirac delta concentrated at a single vertex then diffused over pseudotime to arrive at a diffused distribution. We applied this step for 101 values of ranging in the form log10() [− 2,2].
In each diffused graph, Ollivier-Ricci curvature (ORC) was computed for each edge in the graph by first computing the Wasserstein distance between two probability distributions:
as the minimum total cost for all couplings that satisfy marginals and , which signify probability distributions of vertex weights initially concentrated at vertex and respectively diffused for the same pseudotime , with transport cost specified by the shortest path length between each vertex. The Wasserstein distance () thus indicates optimal transport distance as a measure of closeness between the two diffused distributions. Then, ORC subsequently transforms this value by the following formula:
where is the direct distance between the two vertices defined above. Curvature can indicate positive convergence (clique-like) or negative divergence (tree-like) among diffused probability distributions in the graph, revealing the geometric structure of the graph (i.e. clusters, branching).
After measuring all edge curvature values over the diffusion evolution, we determined a threshold as the first pseudotime/scale when the upper 99th percentile of all edges exceeded 0.75. For each edge, we determine to be the value of at . We additionally define as the integral , to represent a smoothed estimate of curvature during diffusion up to .
Do you have any questions about this protocol?
Post your question to gather feedback from the community. We will also invite the authors of this article to respond.