I have created a code for m layer hexagonal lattice from networkx in python and I want to repeat the same thing using opencv on the white background using the functions line