Create a star graph, a tree with n vertices and n - 1 leaves
star creates a star graph, in this every single vertex is
connected to the center vertex and nobody else.
make_star(n, mode = c("in", "out", "mutual", "undirected"), center = 1)
- Number of vertices.
- It defines the direction of the
in: the edges point to the center,
out: the edges point from the center,
mutual: a directed star is created with mutual edges,
undirected: the edg
- ID of the center vertex.
- Passed to
- An igraph graph.
Other determimistic constructors:
make_star(10, mode = "out") make_star(5, mode = "undirected")