Description Usage Arguments Details Value Author(s) References See Also Examples
This calculates the Laplacian centrality metric for a graph. This function works much better on a network with thresholding applied or on sparse graphs such that some entries have edge weights of zero. This function can take a long time to run on dense graphs.
1 | laplace_centr(graph, prog.bar = TRUE)
|
graph |
A network as an igraph object. |
prog.bar |
Should a progress bar be displayed? Defaults to TRUE. |
weights |
Edge weights should you wish to provide modified input (ie, absolute value, thresholding etc) |
To first understand Laplacian centrality the concept of the Laplacian matrix must be understood. The Laplacian matrix (or graph Laplacian) is the adjacency (or correlation or other weighted connectivity) matrix subtracted from the degree (or strength) matrix. In the strength matrix all entries are zero except for the diagonal, which has as an entry the number corresponding to the degree or strength of node_i.
Mathematically this is represented as
L(G) = X(G) - W(G)
or
L(G) = D(G) - A(G)
The energy of L(G) is used in physics to measure things such as the diffusion of energy through a system and is shown in the formula below:
E_L(G)=∑_{i=1}^nx_i^2+2∑_{i<j}w_{i\text{,}j}^2
Laplacian centrality extends the idea by studying what happens to the ability of energy (or information) to difuse through a network if a node is removed. The centrality score for each node is calculated by the expected drop in energy for the graph Laplacian when node_i is removed. A method of calculating this is given by the formula below:
Δ E_{n}=s_{G}^{2}(n)+s_{G}(n)+2∑_{n _{i}\in N(n)}s_{G}(n_{i})
Built around code translated from python. Original python code available at http://igraph.wikidot.com/python-recipes#toc3
A vector of the Laplacian centrality scores.
Brandon Vaughan
Pauls, S.D., & Remondini, D. (2012). A measure of centrality based on the spectrum of the Laplacian. Physical review. E, Statistical, nonlinear, and soft matter physics, 85 6 Pt 2, 066127.
Qi, Xingqin, et al. (2012). Laplacian centrality: A new centrality measure for weighted networks. Information Sciences 194: 240-253.
laplace_centr_mult leverage_centr leverage_centr_mult
1 | # LPL= laplace_centr(graph)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.