centrality_two_way_rw: Two-Way Random Walk Betweenness
Description
Curado, Rodriguez, Tortosa and Vicent's (2022) counting measure. For
every unordered pair \((i, j)\) the two-step transfer
\(P_{itj} = w_{it} w_{tj} / (d_i d_j)\) (zero when any two of the
three coincide) is combined into \(T_{ij}[t, k] = P_{itj} P_{jki}\),
the diagonal is dropped, and the single largest entry credits one count
to \(t\) and one to \(k\). A node's score is its total count over
all pairs. Higher = more central; nodes never on a winning two-way
route score 0, so sparse tails are not ranked. Reproduces the paper's
toy example exactly, including every printed fraction.
The paper's \(P_{itj}\) is not a random-walk probability (its
denominator is \(d_i d_j\), not \(d_i d_t\)); it is implemented as
printed. Ties in the maximum go to the first entry in row-major order.
Edge weights are used; direction and loops are ignored. Cost is
\(O(n^4)\): fine to a few hundred nodes, slow beyond.
References
Curado, M., Rodriguez, R., Tortosa, L., & Vicent, J. F.
(2022). A new centrality measure in dense networks based on two-way
random walk betweenness. Applied Mathematics and Computation, 412,
126560.
See Also
centrality_current_flow_betweenness for Newman's
random-walk betweenness.