Kagome Lattice

Build a Kagome lattice with open boundary conditions :

using CairoMakie
using LatticeMaker
L = KagomeLattice(4, 5; periodic=(false, false))
Lattice{2}(UnitCell{2}(((1.0, 0.0), (0.5, 0.8660254037844386)), [(0.0, 0.0), (0.5, 0.0), (0.25, 0.4330127018922193)], [(1, (0, 0), 2), (1, (0, 0), 3), (2, (0, 0), 3), (1, (-1, 0), 2), (1, (0, -1), 3), (2, (1, -1), 3)]), (4, 5), (false, false))

Get the edges of the lattice:

edges(L)
103-element Vector{Vector{Int64}}:
 [1, 2]
 [1, 3]
 [2, 3]
 [16, 17]
 [16, 18]
 [17, 18]
 [2, 16]
 [31, 32]
 [31, 33]
 [32, 33]
 ⋮
 [44, 45]
 [29, 43]
 [42, 43]
 [44, 57]
 [58, 59]
 [58, 60]
 [59, 60]
 [44, 58]
 [57, 58]

Plot the lattice:

plot_lattice(L)
Example block output