TDA's gfcf on a directed graph loaded from an edge list.
Arguments
- edges
data frame: from, to.
- threshold
control threshold, default 0.5.
- variant
1 or 2 (the two forms the command documents).
- ...
passed to
tda_run.
Value
one row per node: the node, how many nodes it controls,
and the controlled nodes as a comma-joined string; the pair table
TDA writes (node, controlled node, path length L, share S, M, R –
the manual's Box 2 of 7.6.1.1) is the "pairs" attribute.
Examples
# 1 -> 2 -> 4 and 1 -> 3 -> 4: node 1 controls everything downstream,
# 2 and 3 control node 4 only, node 4 controls nothing
fc <- tda_gfcf(data.frame(i = c(1, 1, 2, 3), j = c(2, 3, 4, 4)))
fc
#> node n_controlled controlled
#> 1 1 3 2,3,4
#> 2 2 1 4
#> 3 3 1 4
#> 4 4 0
attr(fc, "pairs") # per pair: path length and the flow shares
#> i node controlled L S M R
#> 1 1 1 2 1 1 3 3
#> 2 1 1 3 1 1 3 3
#> 3 1 1 4 2 2 3 3
#> 4 2 2 4 1 1 1 1
#> 5 3 3 4 1 1 1 1