Skip to content

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

About

Simulations of the first passage percolation on the square lattice

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages