add.edges: Add edges to a graph

View source: R/interface.R

add.edgesR Documentation

Add edges to a graph

Description

[Deprecated]

add.edges() was renamed to add_edges() to create a more consistent API.

Usage

add.edges(graph, edges, ..., attr = list())

Arguments

graph

The input graph

edges

The edges to add, a vertex sequence with even number of vertices.

...

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

attr

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


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