Egocentric betweenness centrality measures the betweenness role of a node within its egocentric network [2]. The egocentric (or centered) network of node \(i\) is defined as the subgraph of \(G\) consisting of \(i\) and its 1-hop neighbors. Formally, the egocentric betweenness centrality of node \(i\) is defined as the betweenness centrality of \(i\) within its egocentric network.
For computational purposes, the egocentric betweenness of node \(i\) can be expressed directly using the adjacency matrix \(A\) of the full graph \(G\) [3, 4]:
\begin{equation*}
c_{\mathrm{ego}}(i) = \sum_{j \neq i} \sum_{k \neq i} \frac{1}{\left( A^2 \cdot (1-A) \right)_{jk}},
\end{equation*}
where \(\left( A^2 \cdot (1-A) \right)_{jk}\) counts the number of 2-step paths between neighbors \(j\) and \(k\) that pass through \(i\) but exclude direct connections between \(j\) and \(k\).
The egocentric betweenness centrality captures how much node \(i\) mediates interactions among its neighbors, reflecting its local brokerage role.

References

[1] Shvydun, S. (2025). Zoo of Centralities: Encyclopedia of Node Metrics in Complex Networks. arXiv: 2511.05122 https://doi.org/10.48550/arXiv.2511.05122
[2] Freeman, L. C. (1982). Centered graphs and the construction of ego networks. Mathematical Social Sciences 3, 291-304. doi: 10.1016/0165-4896(82)90076-2.
[3] Marsden, P. V. (2002). Egocentric and sociocentric measures of network centrality. Social networks, 24(4), 407-422. doi: 10.1016/S0378-8733(02)00016-3.
[4] Everett, M., & Borgatti, S. P. (2005). Ego network betweenness. Social networks, 27(1), 31-38. doi: 10.1016/j.socnet.2004.11.007.