In a star graph, every vertex connects only to the center.
Value
An igraph_ptr
object.
See also
Other deterministic generators:
graph_create()
,
graph_empty()
,
graph_famous()
,
graph_full()
,
graph_kary_tree()
,
graph_square_lattice()
Examples
graph_star(4L, 0L)
#> $V tibble [4 × 0] (S3: tbl_df/tbl/data.frame)
#> Named list()
#> # A tibble: 3 × 2
#> from to
#> <int> <int>
#> 1 1 2
#> 2 1 3
#> 3 1 4
graph_star(4L, 1L)
#> $V tibble [4 × 0] (S3: tbl_df/tbl/data.frame)
#> Named list()
#> # A tibble: 3 × 2
#> from to
#> <int> <int>
#> 1 2 1
#> 2 3 1
#> 3 4 1
graph_star(4L, 2L)
#> $V tibble [4 × 0] (S3: tbl_df/tbl/data.frame)
#> Named list()
#> # A tibble: 3 × 2
#> from to
#> <int> <int>
#> 1 2 1
#> 2 3 1
#> 3 4 1
graph_star(4L, 3L)
#> $V tibble [4 × 0] (S3: tbl_df/tbl/data.frame)
#> Named list()
#> # A tibble: 6 × 2
#> from to
#> <int> <int>
#> 1 1 2
#> 2 2 1
#> 3 1 3
#> 4 3 1
#> 5 1 4
#> 6 4 1