Description Usage Arguments Value See Also Examples

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

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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.