This is a sample script for computing Forman-Ricci curvature in R.
Please cite:
[1] M. Weber, E. Saucan and J. Jost (2017): Characterizing Complex Networks with Forman-Ricci Curvature and Associated Geometric Flows. arXiv:1607.08654. Journal of Complex Networks, vol. 5 (4), 527-550.
[2] M. Weber, J. Jost and E. Saucan (2016): Forman-Ricci Flow for Change Detection in Large Dynamic Data Sets. arXiv:1604.06634. Axioms. Special issue on Discrete Geometry and Applications, vol. 5(4), 26.