1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
|
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/make.R
\name{make_lattice}
\alias{graph.lattice}
\alias{lattice}
\alias{make_lattice}
\title{Create a lattice graph}
\usage{
make_lattice(dimvector = NULL, length = NULL, dim = NULL, nei = 1,
directed = FALSE, mutual = FALSE, circular = FALSE)
lattice(...)
}
\arguments{
\item{dimvector}{A vector giving the size of the lattice in each
dimension.}
\item{length}{Integer constant, for regular lattices, the size of the
lattice in each dimension.}
\item{dim}{Integer constant, the dimension of the lattice.}
\item{nei}{The distance within which (inclusive) the neighbors on the
lattice will be connected. This parameter is not used right now.}
\item{directed}{Whether to create a directed lattice.}
\item{mutual}{Logical, if \code{TRUE} directed lattices will be
mutually connected.}
\item{circular}{Logical, if \code{TRUE} the lattice or ring will be
circular.}
\item{...}{Passed to \code{make_lattice}.}
}
\value{
An igraph graph.
}
\description{
\code{make_lattice} is a flexible function, it can create lattices of
arbitrary dimensions, periodic or unperiodic ones. It has two
forms. In the first form you only supply \code{dimvector}, but not
\code{length} and \code{dim}. In the second form you omit
\code{dimvector} and supply \code{length} and \code{dim}.
}
\examples{
make_lattice(c(5, 5, 5))
make_lattice(length = 5, dim = 3)
}
\seealso{
Other determimistic constructors: \code{\link{atlas}},
\code{\link{graph.atlas}},
\code{\link{graph_from_atlas}};
\code{\link{chordal_ring}},
\code{\link{graph.extended.chordal.ring}},
\code{\link{make_chordal_ring}};
\code{\link{directed_graph}}, \code{\link{graph}},
\code{\link{graph.famous}},
\code{\link{make_directed_graph}},
\code{\link{make_graph}},
\code{\link{make_undirected_graph}},
\code{\link{undirected_graph}};
\code{\link{empty_graph}}, \code{\link{graph.empty}},
\code{\link{make_empty_graph}};
\code{\link{from_edgelist}},
\code{\link{graph.edgelist}},
\code{\link{graph_from_edgelist}};
\code{\link{from_literal}}, \code{\link{graph.formula}},
\code{\link{graph_from_literal}};
\code{\link{full_citation_graph}},
\code{\link{graph.full.citation}},
\code{\link{make_full_citation_graph}};
\code{\link{full_graph}}, \code{\link{graph.full}},
\code{\link{make_full_graph}}; \code{\link{graph.ring}},
\code{\link{make_ring}}, \code{\link{ring}};
\code{\link{graph.star}}, \code{\link{make_star}},
\code{\link{star}}; \code{\link{graph.tree}},
\code{\link{make_tree}}, \code{\link{tree}}
}
\concept{
Lattice
}
|