Skip to content

Simulations of the first passage percolation on the square lattice

License

Notifications You must be signed in to change notification settings

arnaud-ma/first-passage-percolation

Repository files navigation

first passage percolation

This package provides simulation tools for first passage percolation on the square lattice. See the example.ipynb file for the usage of the package.

Simple example

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")
)

drawing

Installation

pip install first-passage-percolation-sim

TODO's

  • Testings