add.vertices: Add vertices to a graph

View source: R/interface.R

add.verticesR Documentation

Add vertices to a graph

Description

[Deprecated]

add.vertices() was renamed to add_vertices() to create a more consistent API.

Usage

add.vertices(graph, nv, ..., attr = list())

Arguments

graph

The input graph.

nv

The number of vertices to add.

...

Additional arguments, they must be named, and they will be added as vertex attributes, for the newly added vertices. See also details below.

attr

A named list, its elements will be added as vertex attributes, for the newly added vertices. See also details below.


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