generate_tree | R Documentation |
Generates a tree-structured graph
generate_tree(size, children = 2, direction = "undirected")
size |
is the number of nodes |
children |
is the number of children each node has (in addition to a parent node) |
direction |
defines whether the edges are directed inwards, outwards or undirected. Possible values can be 'in', 'out' and 'undirected' (default) |
igraph object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.