FlowConnect: An empty object of class 'FlowConnect'

View source: R/gr_RootDepSet.R

FlowConnectR Documentation

An empty object of class FlowConnect

Description

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".

Usage

FlowConnect()

Value

An object with two empty slots $value for the collection of subsets of nodes and $root for the roots.

Examples

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)

gremes documentation built on Feb. 16, 2023, 8:06 p.m.