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
It was something I raised in review #277 (comment) and it apparently wasn't a straightforward fix. But if you have a solution for doing this I think it would definitely be a welcome fix.
This commit modifies hexagonal_lattice_graph and directed_hexagonal_lattice_graph to
create graphs with consecutive node indices. This is possible with minor changes in the
logic of the original source code, roughly we should shift the node indexes by one (or
two in the last column) except the first column that we don't need a shift.
This is important if we ever use these functions to generate a CouplingMap in terra
where the underlying graph assumes consecutive node indices.
Closes#373.
Information
While generating
hexagonal_lattice_graph
I noticed that the generated node indexes are not consecutive. This seems unexpected to me.What is the current behavior?
What is the expected behavior?
Consecutive node indexes.
The text was updated successfully, but these errors were encountered: