Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.

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

Examples

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

dagR

R Functions for Directed Acyclic Graphs

v1.2.0
GPL-2
Authors
Lutz P Breitling
Initial release
2021-04-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.