View source: R/centrality-batch31.R
| centrality_expected_force | R Documentation |
Computes Lawyer's Expected Force after exactly two transmission events without recovery. For each seed, enumerate ordered sequences of two infected-to-susceptible edge transmissions. Each sequence produces a three-node infected cluster with D outgoing edges to susceptible nodes. Normalize these D values across all sequences and take their Shannon entropy using natural logarithms (Lawyer 2015, equation 1).
centrality_expected_force(x, ...)
x |
Network input accepted by |
... |
Additional arguments to |
Different event orders or transmitting parents remain distinct even when they infect the same three nodes. A seed and two adjacent neighbors of an undirected triangle form four sequences, not one. Boundary edges are counted individually even when they reach the same susceptible node. This is not entropy over distinct infected sets or over boundary-degree categories, and is not a probability-weighted epidemic simulation.
Uses the simple unweighted graph, retaining direction. In directed graphs, only outgoing infected-to-susceptible arcs transmit or contribute boundary degree, following the paper's directed extension. Loops and duplicate arcs are removed after generic processing. Weights, mode, inversion and cutoff do not affect the result. The weighted extension and horizons other than two events are outside this implementation.
Zero-degree outcomes use the zero-log-zero entropy limit. If no sequence can perform two transmissions, or every resulting cluster has zero onward force, cograph returns zero. The latter is an explicit extension of the paper's undefined all-zero normalization, not author-code parity. Isolates and components of at most three nodes therefore score zero. A single positive-force outcome also has entropy zero. Empty input returns no scores. The measure is local and does not establish epidemic probability, outbreak size or predictive accuracy on the supplied graph.
Native computation groups three-node clusters by boundary degree while preserving their event multiplicities. Worst-case time is O(n cubed), memory O(n squared), including dense graph preparation. Scores remain independent between components before maximum normalization.
Named numeric vector in input node order.
Lawyer, G. (2015). Understanding the influence of all nodes in a network. Scientific Reports, 5, 8665. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1038/srep08665")}.
centrality_modified_expected_force for degree
adjustment. centrality_expected computes a different
quantity, the sum of neighbor degrees.
centrality_expected_force(igraph::make_graph("Zachary"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.