New algorithm to calculate the percolation correlation length of a lattice or spatial network based on disjoint sets.
It is a growing algorithm based on disjoint sets that uses the parallel axis theorem to track the correlation length as nodes/links are added.
If you use the algorithm, please cite the paper:
Faster calculation of the percolation correlation length on spatial networks
Michael M. Danziger, Bnaya Gross, Sergey V. Buldyrev
Phys. Rev. E 101, 013306 (2020)
https://doi.org/10.1103/PhysRevE.101.013306