add.arc | R Documentation |
Conveniently add an arc to an existing DAG.
add.arc(dag, arc, type = 0)
dag |
The DAG to which an arc should be added. |
arc |
A vector of length 2, indicating from which node (first element) to
which node (second element) the arc is to go.
Note: the node numbering follows the numbering of the existing
DAG (as shown in |
type |
0 (=default) for a directed arc, 1 for an undirected association. |
A DAG with the arc (and corresponding arc.type
) added, and with the
path-related variables (paths
, pathsN
, path.status
, searchType
, searchRes
) removed.
Lutz P Breitling <l.breitling@posteo.de>
rm.arc
, add.node
, rm.node
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.