Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 617 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 617 Bytes

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