Algorithm to calculate efficieltly the number of anti-red bonds on a cubic lattice
For small lattices, a 3D representation of the lattice can be shown with bin/3dshow.py
read the manpage for more details
This algorithm was used for the following publication: https://www.worldscientific.com/doi/abs/10.1142/S0129183109013595