neuralqx.graph.hexagonal_lattice module¶
- class HexagonalLatticeGraph(m, n, periodic=False, *, plot=False, non_planar=False, random_embedding=False, random_embedding_mean=0.0, random_embedding_std=5.0, random_embedding_seed=123)¶
Bases:
GraphHexagonal (honeycomb) lattice graph with \(m\) rows and \(n\) columns of hexagons.
This graph is the 1-skeleton of the hexagonal tiling of the plane, arranged such that odd numbered columns are shifted relative to even numbered columns (as in
networkx.generators.hexagonal_lattice_graph()). Theperiodicflag enables periodic boundary conditions in the NetworkX construction.NetworkX uses coordinate-labelled vertices for this generator; neuraLQX relabels them to consecutive integers before constructing
Graph. Ifnon_planar=True, vertices are relabelled to 3-tuples and may be given a random spatial embedding.- Parameters:
m (
int) – Number of hexagon rows.n (
int) – Number of hexagon columns.periodic (
bool) – If True, impose periodic boundary conditions as supported by NetworkX.plot (
bool) – If True, produce a visualisation via the base graph machinery.non_planar (
bool) – If True, relabel vertices to 3-tuples to trigger the non-planar pipeline.random_embedding (
bool) – If True, assign a random 3D embedding to vertices (non-planar only).random_embedding_mean (
float) – Mean of the Gaussian used for the random embedding.random_embedding_std (
float) – Standard deviation of the Gaussian used for the random embedding.random_embedding_seed (
int) – Seed controlling the random embedding.
- property m¶
- property n¶
- property periodic¶