add.vertices.networkLite {networkLite}R Documentation

Add Vertices to a networkLite.

Description

Add Vertices to a networkLite.

Usage

## S3 method for class 'networkLite'
add.vertices(x, nv, vattr = NULL, last.mode = TRUE, ...)

Arguments

x

A networkLite object.

nv

Number of vertices to add to the networkLite.

vattr

A list (of length nv) of named lists of vertex attribute values for added vertices, or NULL to indicate vertex attribute values are not being passed.

last.mode

logical; if x is bipartite, should the new vertices be added to the second mode?

...

additional arguments

Value

A networkLite object with vertices added.


[Package networkLite version 1.0.5 Index]