arc4gn: adds or remove some arc(s) to or from a gn object

Description Usage Arguments Value Examples

View source: R/f0.g4n1.code.r

Description

Adds [removes] zero, one arc or a series of arcs to [from] a gn and returns the gn so modified. When arcs to add already exist, nothing is done. When arc to remove does not exist, nothing is done.

Usage

1
arc4gn(gn, from, to, add=TRUE)

Arguments

gn

The gn object

from

vector of ion describing the starting nodes of the arcs to add or remove.

to

vector of ion describing the ending nodes of the arcs to add or remove.

add

(=TRUE) Adding? (or removing).

Value

The modified gn object.

Examples

1
2
3
4
 g4n3k("RESET"); # needed only for R checking, to be forgotten
 gn1 <- g4n.gn7;
 gn2 <- arc4gn(gn1, c("A", "C"), c("E", "E"));
 gg1 <- arc4gn(gn2, "A", "B", FALSE);

g4n documentation built on May 2, 2019, 5:47 p.m.

Related to arc4gn in g4n...