This is a simple Python implementation of percolation theory using Union Find. The details are in main.ipynb
.
Simply install the required packages in requirements.txt
, clone this repo and run the notebook.
ipython==8.12.3
numpy==1.23.5
scipy==1.10.0
matplotlib==3.7.0
tqdm==4.66.2
Simulation Result (feel free to try it out yourself)