Skip to content

WIP: Drawing method for Lattice

Vicentini Filippo requested to merge github/fork/VolodyaCO/fix_lattice into fix_lattice

Created by: VolodyaCO

This PR fixes a floating point error that hid some edges when creating lattices, as suggested by @chrisrothUT in #611. The PR also creates a method to draw the lattice and its edges.

Some things to discuss:

  1. Should I enforce that graphs are drawn only for 1D and 2D lattices?
  2. I added a curvature by default to the edges, because when using pbcs some edges are drawn on top of other edges, making it impossible to differentiate them. Should I expose an argument to control the curvature?
  3. What other arguments should I expose?

Merge request reports