EVOLUTION-MANAGER
Edit File: make_lattice.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Create a lattice graph</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for make_lattice {igraph}"><tr><td>make_lattice {igraph}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Create a lattice graph</h2> <h3>Description</h3> <p><code>make_lattice</code> 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 <code>dimvector</code>, but not <code>length</code> and <code>dim</code>. In the second form you omit <code>dimvector</code> and supply <code>length</code> and <code>dim</code>. </p> <h3>Usage</h3> <pre> make_lattice( dimvector = NULL, length = NULL, dim = NULL, nei = 1, directed = FALSE, mutual = FALSE, circular = FALSE ) lattice(...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>dimvector</code></td> <td> <p>A vector giving the size of the lattice in each dimension.</p> </td></tr> <tr valign="top"><td><code>length</code></td> <td> <p>Integer constant, for regular lattices, the size of the lattice in each dimension.</p> </td></tr> <tr valign="top"><td><code>dim</code></td> <td> <p>Integer constant, the dimension of the lattice.</p> </td></tr> <tr valign="top"><td><code>nei</code></td> <td> <p>The distance within which (inclusive) the neighbors on the lattice will be connected. This parameter is not used right now.</p> </td></tr> <tr valign="top"><td><code>directed</code></td> <td> <p>Whether to create a directed lattice.</p> </td></tr> <tr valign="top"><td><code>mutual</code></td> <td> <p>Logical, if <code>TRUE</code> directed lattices will be mutually connected.</p> </td></tr> <tr valign="top"><td><code>circular</code></td> <td> <p>Logical, if <code>TRUE</code> the lattice or ring will be circular.</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>Passed to <code>make_lattice</code>.</p> </td></tr> </table> <h3>Value</h3> <p>An igraph graph. </p> <h3>See Also</h3> <p>Other deterministic constructors: <code><a href="graph_from_atlas.html">graph_from_atlas</a>()</code>, <code><a href="graph_from_edgelist.html">graph_from_edgelist</a>()</code>, <code><a href="graph_from_literal.html">graph_from_literal</a>()</code>, <code><a href="make_chordal_ring.html">make_chordal_ring</a>()</code>, <code><a href="make_empty_graph.html">make_empty_graph</a>()</code>, <code><a href="make_full_citation_graph.html">make_full_citation_graph</a>()</code>, <code><a href="make_full_graph.html">make_full_graph</a>()</code>, <code><a href="make_graph.html">make_graph</a>()</code>, <code><a href="make_ring.html">make_ring</a>()</code>, <code><a href="make_star.html">make_star</a>()</code>, <code><a href="make_tree.html">make_tree</a>()</code> </p> <h3>Examples</h3> <pre> make_lattice(c(5, 5, 5)) make_lattice(length = 5, dim = 3) </pre> <hr /><div style="text-align: center;">[Package <em>igraph</em> version 1.3.5 <a href="00Index.html">Index</a>]</div> </body></html>