View source: R/centrality-batch17.R
| centrality_extended_gravity | R Documentation |
Ma et al.'s extended gravity score is the sum of the immediate neighbors'
raw gravity scores:
G^+(i)=\sum_{j\in N(i)}G(j), where
G(j)=\sum_{l:0<d(j,l)\le r}k_s(j)k_s(l)/d(j,l)^2.
Core numbers and hop distances are calculated on the original simple
undirected graph. The radius applies around each neighbor j; it is not
a radius around the focal node i. A contribution can therefore reach
r+1 hops from i, and paths from a neighbor back to i also contribute.
centrality_extended_gravity(x, gravity_radius = 3, ...)
x |
Network input accepted by |
gravity_radius |
Nonnegative hop-distance cutoff, default 3. NULL
or infinity includes the entire reachable component. The optional
|
... |
Additional arguments to |
Default radius three is the setting used in the original paper. NULL or infinity includes every reachable partner, excluding the gravity source itself. Radius zero and isolates score zero. The outer neighbor sum has no distance penalty. All inner scores remain raw until the final optional max normalization.
Uses the simple undirected unweighted skeleton, with either direction
creating an edge, parallel edges counted once and loops removed. This
projection is a cograph convention for other inputs. Edge weights,
mode, gravity_mass and path-weight inversion do not affect
this measure: its masses are always k-shell indices. Computation includes
all-pairs hop distances, so it can be expensive for large graphs.
Named numeric vector in input node order.
Ma, L. L., Ma, C., Zhang, H. F., & Wang, B. H. (2016). Identifying influential spreaders in complex networks based on gravity formula. Physica A, 451, 205-212. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/j.physa.2015.12.162")}.
centrality_gravity.
centrality_extended_gravity(igraph::make_ring(6), gravity_radius = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.