`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 `dimvector`

, but not
`length`

and `dim`

. In the second form you omit
`dimvector`

and supply `length`

and `dim`

.

1 2 3 4 |

`dimvector` |
A vector giving the size of the lattice in each dimension. |

`length` |
Integer constant, for regular lattices, the size of the lattice in each dimension. |

`dim` |
Integer constant, the dimension of the lattice. |

`nei` |
The distance within which (inclusive) the neighbors on the lattice will be connected. This parameter is not used right now. |

`directed` |
Whether to create a directed lattice. |

`mutual` |
Logical, if |

`circular` |
Logical, if |

`...` |
Passed to |

An igraph graph.

Other determimistic constructors: `atlas`

,
`graph.atlas`

,
`graph_from_atlas`

;
`chordal_ring`

,
`graph.extended.chordal.ring`

,
`make_chordal_ring`

;
`directed_graph`

, `graph`

,
`graph.famous`

,
`make_directed_graph`

,
`make_graph`

,
`make_undirected_graph`

,
`undirected_graph`

;
`empty_graph`

, `graph.empty`

,
`make_empty_graph`

;
`from_edgelist`

,
`graph.edgelist`

,
`graph_from_edgelist`

;
`from_literal`

, `graph.formula`

,
`graph_from_literal`

;
`full_citation_graph`

,
`graph.full.citation`

,
`make_full_citation_graph`

;
`full_graph`

, `graph.full`

,
`make_full_graph`

; `graph.ring`

,
`make_ring`

, `ring`

;
`graph.star`

, `make_star`

,
`star`

; `graph.tree`

,
`make_tree`

, `tree`

1 2 | ```
make_lattice(c(5, 5, 5))
make_lattice(length = 5, dim = 3)
``` |

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.