apfa2NS: APFA to node symbol array

Description Usage Arguments Details Value Author(s) Examples

View source: R/APFAfunctions.R

Description

Derives a node by symbol array from an APFA.

Usage

1

Arguments

G

G is an APFA igraph object.

Details

A node by symbol array represents the APFA in a convenient form for computation. The rows correspond to nodes, the columns correspond to edge symbols (twice). The first $k$ columns contain the ids of the target nodes for an edge from the node with the corresponding symbol. Zeroes mean that there is no corresponding edge. The last $k$ columns contain the corresponding edge counts.

Value

output: Derived node by symbol array.

Author(s)

Smitha Ankinakatte and David Edwards

Examples

1
2
3
4
5
library(gRapfa)
data(Wheeze)
G <- st(Wheeze)
G.c <- contract.last.level(G)
ns.array <- apfa2NS(G.c)

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