I am trying to write a special hexagonal lattice generator, with several kinds of boundary conditions, such as helical BC, periodic BC, and I find it hard to verify whether it works correctly. I tried to draw them using 2-dimensional network drawing (using networkx) and as I expected, it was a total mess. Right now I have to work out the adjacency matrix beforehand and verify the generated network with the calculated adjacency matrix. It's fine with the regular lattice, but if I introduce some random perturbation on the lattice, this approach is very tiresome. It would be a lot easier if I could see the network drawn correctly.
Is it possible to correctly visualize (probably in 3D?) lattice with various boundary conditions? Or in other software tools? Is there a convenient way to test this kind of network generator?