graph.star: Create a star graph, a tree with n vertices and n - 1 leaves

View source: R/make.R

graph.starR Documentation

Create a star graph, a tree with n vertices and n - 1 leaves

Description

[Deprecated]

graph.star() was renamed to make_star() to create a more consistent API.

Usage

graph.star(n, mode = c("in", "out", "mutual", "undirected"), center = 1)

Arguments

n

Number of vertices.

mode

It defines the direction of the edges, ⁠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 edges are undirected.

center

ID of the center vertex.


igraph documentation built on Oct. 20, 2024, 1:06 a.m.