The gravity model (originally proposed in [2] as the inverse-square law method), inspired by Newton’s law of gravitation, evaluates a node’s importance in spreading dynamics by incorporating both neighborhood and path information [3]. In this model, the degree of a node is regarded as its mass, while the shortest path length between two nodes represents their distance.
The centrality \(c_{\text{GM}}(i)\) of node \(i\) is defined as
\begin{equation*}
c_{\text{GM}}(i) = \sum_{j \neq i} \frac{d_i\,d_j}{d_{ij}^2},
\end{equation*}
where \(d_{ij}\) denotes the shortest path distance between nodes \(i\) and \(j\) and \(d_i\) represents the degree of \(i\).
According to the gravity model, a node with a larger degree (reflecting stronger local connectivity) and shorter average distances to other nodes (indicating higher global accessibility) is considered more influential in the network.

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] Fei, L., Zhang, Q., & Deng, Y. (2018). Identifying influential nodes in complex networks based on the inverse-square law. Physica A: Statistical Mechanics and its Applications, 512, 1044-1059. doi: 10.1016/j.physa.2018.08.135.
[3] Li, Z., Ren, T., Ma, X., Liu, S., Zhang, Y. & Zhou, T. Identifying influential spreaders by gravity model. Sci Rep 9, 8387 (2019). doi: 10.1038/s41598-019-44930-9.