addEdges: Add or remove edges

View source: R/mutilate.R

addEdgesR Documentation

Add or remove edges

Description

Add or remove edges

Usage

addEdges(graph, edges, ..., remDup = TRUE)

removeEdges(graph, edges, ..., force = FALSE, fast = FALSE)

Arguments

graph

a mixedgraph object

edges

list of edges to be added/removed

...

edges to be added with arguments matching names of edge types

remDup

logical: should we check for duplicate edges?

force

should we just ignore edges not actually present?

fast

fast version for when graph already uses adjacency matrices

Details

The remDup argument is set by default to remove duplicate edges. Currently removeEdges() forces all edges to be represented by adjacency matrices.

The fast argument for removeEdges requires that the edge to be removed is given as a single vector of length 2.

Functions

  • removeEdges(): remove edges


rje42/MixedGraphs documentation built on March 20, 2024, 8:09 a.m.