star()
creates a star graph, in this every single vertex is
connected to the center vertex and nobody else.
Usage
make_star(n, mode = c("in", "out", "mutual", "undirected"), center = 1)
star(...)
See also
Other deterministic constructors:
graph_from_atlas()
,
graph_from_edgelist()
,
graph_from_literal()
,
make_()
,
make_chordal_ring()
,
make_empty_graph()
,
make_full_citation_graph()
,
make_full_graph()
,
make_graph()
,
make_lattice()
,
make_ring()
,
make_tree()
Examples
make_star(10, mode = "out")
#> IGRAPH 4b1198e D--- 10 9 -- Out-star
#> + attr: name (g/c), mode (g/c), center (g/n)
#> + edges from 4b1198e:
#> [1] 1-> 2 1-> 3 1-> 4 1-> 5 1-> 6 1-> 7 1-> 8 1-> 9 1->10
make_star(5, mode = "undirected")
#> IGRAPH 6956b41 U--- 5 4 -- Star
#> + attr: name (g/c), mode (g/c), center (g/n)
#> + edges from 6956b41:
#> [1] 1--2 1--3 1--4 1--5