Summary Method for net_hon
Usage
# S3 method for class 'net_hon'
summary(object, ...)Value
The edge data.frame object$edges (columns path,
from, to, count, probability,
from_order, to_order), returned visibly; the summary text
is printed as a side effect.
Examples
seqs <- list(c("A","B","C","D"), c("A","B","C","A"), c("B","C","D","A"))
hon <- build_hon(seqs, max_order = 2)
summary(hon)
#> Higher-Order Network (HON) Summary
#> Nodes: 4 | Edges: 5 | Trajectories: 3
#> First-order states: A, B, C, D
#> Max order observed: 1 (requested: 2)
#> Min frequency: 1
#> Node order distribution:
#> Order 1: 4 nodes
#> from to weight
#> 1 3 1 0.3333333
#> 2 4 1 1.0000000
#> 3 1 2 1.0000000
#> 4 2 3 1.0000000
#> 5 3 4 0.6666667
# \donttest{
seqs <- data.frame(
V1 = c("A","B","C","A","B"),
V2 = c("B","C","A","B","C"),
V3 = c("C","A","B","C","A")
)
hon <- build_hon(seqs, max_order = 2L)
summary(hon)
#> Higher-Order Network (HON) Summary
#> Nodes: 3 | Edges: 3 | Trajectories: 5
#> First-order states: A, B, C
#> Max order observed: 1 (requested: 2)
#> Min frequency: 1
#> Node order distribution:
#> Order 1: 3 nodes
#> from to weight
#> 1 3 1 1
#> 2 1 2 1
#> 3 2 3 1
# }