Skip to main content

Module lattice

Module lattice 

Source
Available on crate feature generators only.
Expand description

Lattice hypergraph generators (XGI generators/lattice.py).

Functions§

ring_lattice
A d-uniform ring-lattice hypergraph on n nodes: each node is in k edges, consecutive edges overlap by d - l. XGI ring_lattice(n, d, k, l, with_positions).
ring_lattice_edges
The edges of ring_lattice(n, d, k, l, ..) in id order: node i, then the d-1 nodes (start + l + j) % n for j in 0..d-1, for start in i+1 ..= i + k/2. XGI’s _ring_lattice_edges.