Calculation of percolation thresholds for 2d lattices. Makes use of the boost::graph library.