View source: R/centrality-batch16.R
| centrality_resistance_curvature | R Documentation |
Devriendt and Lambiotte's node resistance curvature is
p_i=1-\frac{1}{2}\sum_{j\sim i}w_{ij}R_{ij}, where weights are
electrical conductances and R is effective resistance. Equivalently, it
is one minus half the expected degree in a random spanning tree whose
probability is proportional to the product of its edge conductances.
The expectation is taken separately within each connected component.
centrality_resistance_curvature(x, ...)
x |
Network input accepted by |
... |
Additional arguments to |
Low, possibly negative, curvature characterizes tree-like junctions; larger curvature characterizes locally redundant connections. It is a geometric descriptor, not a universal ranking of influence. On a tree the score is one minus half the degree; on an unweighted clique or cycle of n vertices every node scores 1/n. Isolates score one, following the empty sum. Raw scores sum to the number of connected components.
Uses finite nonnegative edge weights as conductances when
weighted = TRUE; zero weights are absent connections. Without
weights, uses the simple undirected skeleton. Self-loops are always
removed. For weighted directed inputs, opposite arcs are added to form
undirected conductances. The simplify argument combines parallel
edges first; remaining weighted parallel edges are added. These input
projections are cograph conventions for the source's undirected domain.
mode and shortest-path weight inversion do not affect the result.
Exact dense electrical systems are solved component by component, using Cholesky factors of grounded Laplacians. Squared triangular-solve norms avoid subtracting nearly equal pseudoinverse entries. Uniform rescaling of conductances within a component leaves curvature unchanged. Extreme weight ranges can still produce numerical singularity or overflow, in which case an error is raised. Dense factorization and edge solves cost up to O(n cubed + n squared times m) per component; the measure is excluded from the default all tier and must be requested explicitly.
Named numeric vector in input node order.
Devriendt, K., & Lambiotte, R. (2022). Discrete curvature on graphs from the effective resistance. Journal of Physics: Complexity, 3, 025008. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1088/2632-072X/ac730d")}.
centrality_resistance_curvature(igraph::make_star(5, mode = "undirected"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.