This package provides simulation tools for first passage percolation on the square lattice. See the example.ipynb
file for the usage of the package.
import first_passage_percolation_sim as fpp
from scipy.stats import geom
(fpp.FirstPassagePercolation(size=201, dist=geom(0.5))
.compute_lengths()
.plot_heatmap(cmap="inferno")
)
pip install first-passage-percolation-sim
- Testings