Learn R Programming

dagR (version 1.1.1)

rm.arc: Remove an arc from a DAG.

Description

Function to 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.

See Also

add.arc, add.node, rm.node

Examples

Run this code
dag1<-demo.dag1();
dag1$arc;
dag1rma<-rm.arc(dag1, 2);

Run the code above in your browser using DataLab