You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should throw an error if named_hexagonal_lattice_graph(n, m; periodic = true) is called with n =2 or m = 2 because this will output a graph that essentially is a ladder (with shortest loop size 4) and resembles nothing like a hexagonal graph so may be misleading to the user.
This is likely an issue implicitly tied to the hexagonal lattice itself (hexagonal_lattice_graph for Networkx in Python also has the same output).
The text was updated successfully, but these errors were encountered:
mtfishman
changed the title
Throw an error if hexagonal_lattice_graph(n, m; periodic = true) is called with n or m = 2
Throw an error if named_hexagonal_lattice_graph(n, m; periodic = true) is called with n or m = 2
Apr 16, 2024
We should throw an error if
named_hexagonal_lattice_graph(n, m; periodic = true)
is called withn =2
orm = 2
because this will output a graph that essentially is a ladder (with shortest loop size4
) and resembles nothing like a hexagonal graph so may be misleading to the user.This is likely an issue implicitly tied to the hexagonal lattice itself (
hexagonal_lattice_graph
forNetworkx
inPython
also has the same output).The text was updated successfully, but these errors were encountered: