LocalRank centrality (also called semi-local or local centrality) quantifies a node’s importance by considering both its nearest and next-nearest neighbors [2]. For a node \(i\), it is defined as
\begin{equation*}
c_{\mathrm{LR}}(i) = \sum_{j \in \mathcal{N}(i)} \sum_{k \in \mathcal{N}(j)} n(k),
\end{equation*}
where \(\mathcal{N}(i)\) is the set of neighbors of \(i\), and \(n(k)=|N^{(\le 2)}(k)|\) is the number of nearest and next-nearest neighbors of node \(k\).
Intuitively, LocalRank captures both the direct connectivity of a node and the connectivity of its neighbors, allowing nodes connected to highly connected neighborhoods to achieve higher centrality. This makes it more discriminative than degree centrality while remaining computationally efficient.

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] Chen, D., Lü, L., Shang, M. S., Zhang, Y. C., & Zhou, T. (2012). Identifying influential nodes in complex networks. Physica a: Statistical mechanics and its applications, 391(4), 1777-1787. doi: 10.1016/j.physa.2011.09.017.