rm.arc: Remove an arc from a DAG.

View source: R/rm.arc.R

rm.arcR Documentation

Remove an arc from a DAG.

Description

Conveniently remove an arc from an existing DAG.

Usage

rm.arc(dag, arc)

Arguments

dag

The DAG from which to remove the arc.

arc

A single integer, indicating which arc is to be removed (refering to the respective row of the dag$arc matrix).

Value

A DAG with the arc specified removed along with the corresponding attributes like arc types, curves, and path evaluation variables.

Note

The numbering of the arcs can be visualized by applying dag.draw with the option "numbering=TRUE".

Author(s)

Lutz P Breitling <l.breitling@posteo.de>

See Also

add.arc, add.node, rm.node


dagR documentation built on Oct. 9, 2022, 5:06 p.m.