Create tree graphs
Create a regular tree graph.
make_tree(n, children = 2, mode = c("out", "in", "undirected"))
- Number of vertices.
- Integer scalar, the number of children of a vertex (except for leafs)
- Defines the direction of the
outindicates that the edges point from the parent to the children,
inindicates that they point from the children to their parents, while
undirectedcreates an undirected graph.
- Passed to
- An igraph graph
Other determimistic constructors:
make_tree(10, 2) make_tree(10, 3, mode = "undirected")