View source: R/centrality-batch35.R
| centrality_map_equation | R Documentation |
Map equation centrality (Blocker et al. 2022) is the reduction in
codelength, in bits, when a node's codeword is removed from its module
codebook and the codebook is redesigned. With p the visit rate
of the node and s the use rate of its module codebook,
MEC_i = -(s - p) \log_2 \frac{s - p}{s}.
centrality_map_equation(
x,
membership = NULL,
map_flow = "unrecorded",
map_convention = "paper",
...
)
x |
Network input accepted by |
membership |
One module label per node. |
map_flow |
|
map_convention |
|
... |
Further arguments to |
The partition is held fixed and is given by membership, and
NULL places every node in one module. With
map_convention = "paper" the rate s includes module
exits (equations 2 and 9-11), and with "infomap" it includes node
visits only, which reproduces Infomap 2.15.1 and Table 1 of the paper.
With map_flow = "unrecorded" (Lambiotte and Rosvall 2012) the
walk teleports in proportion to out-strength and only link steps are
recorded, so on an undirected network the visit rates are proportional
to strength for every damping. With "recorded" the walk
teleports uniformly and teleportation steps are recorded. Direction is
kept, loops are removed and edge weights must be finite and
nonnegative. Under unrecorded flow an isolated node scores zero. An
invalid membership, map_flow or map_convention, or
a damping outside [0, 1), raises an error.
A named numeric vector with one score per node, in input node order.
Blocker, C., Nieves, J. C. and Rosvall, M. (2022). Map equation centrality: community-aware centrality based on the map equation. Applied Network Science, 7, 56. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1007/s41109-022-00477-9")}.
Lambiotte, R. and Rosvall, M. (2012). Ranking and clustering of nodes in networks with smart teleportation. Physical Review E, 85, 056107. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1103/PhysRevE.85.056107")}.
centrality_community_based,
centrality_participation, centrality.
centrality_map_equation(regulation_net, membership = rep(1:2, each = 5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.