rm.node: Remove a node from a DAG.

View source: R/rm.node.R

rm.nodeR Documentation

Remove a node from a DAG.

Description

Conveniently remove a node from an existing DAG.

Usage

rm.node(dag, node)

Arguments

dag

The DAG from which to remove the node.

node

A single integer, indicating which node is to be removed.

Value

A DAG with the node specified removed, along with the corresponding attributes and dependent variables, i.e. arcs involving this node are also removed, and the numbering of the nodes (and their occurrence in arcs) is corrected accordingly.
Note: Search components (searchType, searchRes) of the DAG currently are generally set to NULL, even if no path is removed. This is for simplicity, because the node numbers would need to be changed eg. in the searchRes variables etc.

Author(s)

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

See Also

add.node, rm.arc, add.arc


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