mutilate: Delete edges

View source: R/mutilate.R

mutilateR Documentation

Delete edges

Description

Remove edges adjacent to set of vertices

Usage

mutilate(graph, A, B, etype, dir = 0L, internal = FALSE)

Arguments

graph

a mixedgraph object

A, B

sets of vertices in graph

etype

which edges to remove

dir

indicates whether only edges of certain orientation are removed

internal

logical: should only edges within A be removed?

Details

If no edge type is specified, then all edges are removed. If dir=1, then directed edges out of A are removed, but ones into A are preserved; for dir=-1 the reverse, and for dir=0 (the default), direction is irrelevant. If a second set B is specified, then all edges between A and B are removed.

Note that specifying internal=TRUE and providing a set B will result in an error.


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