View source: R/gr_RootDepSet.R
FlowConnect | R Documentation |
FlowConnect
It is a subclass of RootDepSet
.
It creates an object with two empty slots $value
for the collection of subsets of nodes
and $root
for the roots
associated to each of the subsets in $value
.
Every node with observable variable should be taken as a root.
A subset of nodes is created for every root.
For every root the subset of nodes is created on the principle of flow connection -
a term from river networks applications.
The slots are supposed to be assigned to some values. The simplest ways is
using method setRootDepSet
. For other examples see Vignette "Subsets and Coordinates".
FlowConnect()
An object with two empty slots $value
for the collection of subsets of nodes
and $root
for the roots.
seg<- make_tree(7,3, mode = "undirected") name_stat<- letters[1:7] seg<- set.vertex.attribute(seg, "name", V(seg), name_stat) seg_dir<- make_tree(7,3, mode = "in") seg_dir<- set.vertex.attribute(seg_dir, "name", V(seg_dir), name_stat) fcg<- FlowConnectionGraph(seg_dir) rdsobj<- FlowConnect() subset(rdsobj, from=fcg, g=seg)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.