add_vertices: Add vertices

View source: R/generic.R

add_vertexR Documentation

Add vertices

Description

Add vertices

Usage

add_vertex(x, ...)

add_vertices(x, ...)

## S3 method for class 'datagraph'
add_vertex(x, vertex)

## S3 method for class 'character'
add_vertex(x, graph, from = NULL, to = NULL, ...)

## S3 method for class 'data.table'
add_vertex(x, graph)

## S3 method for class 'list'
add_vertex(x, graph)

## S3 method for class 'datagraph'
add_vertices(x, vertices)

## S3 method for class 'data.table'
add_vertices(x, graph)

Arguments

x

see the S3 methods

...

args passed to the S3 methods

vertex

id of a vertex

graph

datagraph object

from

vector of vertices to connect from

to

vector of vertices to connect from

vertices

vector of new ids


vh-d/datagraphs documentation built on May 13, 2022, 1:42 p.m.