MergeNodes: Merge given node set of an APFA

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/APFAfunctions.R

Description

Merges two nodes (at the same level) in an APFA, returning the resulting APFA.

Usage

1
MergeNodes(G, nodeset, NS = NULL, setLayout = TRUE)

Arguments

G

G is an APFA object.

nodeset

nodeset is a vector of vertex names or nodes of length two, which are to be merged.

NS

NS is the node by symbol array for G. Supplying this will speed the computations.

setLayout

If setLayout=TRUE sets XY coordinates for the graph

Details

If necessary, more details than the description above.

Value

Returns the APFA igraph object after merging.

Author(s)

Smitha Ankinakatte and David Edwards

See Also

merge2nodes

Examples

1
2
3
4
5
library(gRapfa)
data(Wheeze)
G <- st(Wheeze)
G.c <- contract.last.level(G)
G.m <- MergeNodes(G.c, c(5,3))

gRapfa documentation built on May 2, 2019, 6:54 a.m.