add.edges: add edges

Description Usage Arguments Details Value Author(s)

Description

add edges for igraph or mgraph object

Usage

1
add.edges(object, edges, ...)

Arguments

object

igraph/mgraph object

edges

various data type

  • sequence of integer or character: like igraph add.edges

  • edge names: each name is a pair of nodes seperated by "|" such as "A|B"

  • data.frame or matrix: first 2 columns are treated as sources and targets.

Details

Versatile add edges fucntion: accept sequences (like igraph::add.edges), vertex names or data.frame (first 2 columns are from and to). Refer to igraph::add.edges for other details.

Value

graph object

Author(s)

ZG Zhao


zgzhao/gmetab documentation built on Dec. 23, 2021, 9:17 p.m.