make_lattice
is a flexible function, it can create lattices of
arbitrary dimensions, periodic or aperiodic ones. It has two
forms. In the first form you only supply dimvector
, but not
length
and dim
. In the second form you omit
dimvector
and supply length
and dim
.
make_lattice(
dimvector = NULL,
length = NULL,
dim = NULL,
nei = 1,
directed = FALSE,
mutual = FALSE,
circular = FALSE
)lattice(...)
An igraph graph.
A vector giving the size of the lattice in each dimension.
Integer constant, for regular lattices, the size of the lattice in each dimension.
Integer constant, the dimension of the lattice.
The distance within which (inclusive) the neighbors on the lattice will be connected. This parameter is not used right now.
Whether to create a directed lattice.
Logical, if TRUE
directed lattices will be
mutually connected.
Logical, if TRUE
the lattice or ring will be
circular.
Passed to make_lattice
.
Other deterministic constructors:
graph_from_atlas()
,
graph_from_edgelist()
,
graph_from_literal()
,
make_chordal_ring()
,
make_empty_graph()
,
make_full_citation_graph()
,
make_full_graph()
,
make_graph()
,
make_ring()
,
make_star()
,
make_tree()
make_lattice(c(5, 5, 5))
make_lattice(length = 5, dim = 3)
Run the code above in your browser using DataLab