EVOLUTION-MANAGER
Edit File: make_tree.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 tree graphs</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_tree {igraph}"><tr><td>make_tree {igraph}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Create tree graphs</h2> <h3>Description</h3> <p>Create a k-ary tree graph, where almost all vertices other than the leaves have the same number of children. </p> <h3>Usage</h3> <pre> make_tree(n, children = 2, mode = c("out", "in", "undirected")) tree(...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>n</code></td> <td> <p>Number of vertices.</p> </td></tr> <tr valign="top"><td><code>children</code></td> <td> <p>Integer scalar, the number of children of a vertex (except for leafs)</p> </td></tr> <tr valign="top"><td><code>mode</code></td> <td> <p>Defines the direction of the edges. <code>out</code> indicates that the edges point from the parent to the children, <code>in</code> indicates that they point from the children to their parents, while <code>undirected</code> creates an undirected graph.</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>Passed to <code>make_tree</code> or <code>sample_tree</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_lattice.html">make_lattice</a>()</code>, <code><a href="make_ring.html">make_ring</a>()</code>, <code><a href="make_star.html">make_star</a>()</code> </p> <h3>Examples</h3> <pre> make_tree(10, 2) make_tree(10, 3, mode = "undirected") </pre> <hr /><div style="text-align: center;">[Package <em>igraph</em> version 1.3.5 <a href="00Index.html">Index</a>]</div> </body></html>