View source: R/gr_flowConnectionInput.R
FlowConnectionGraph | R Documentation |
FlowConnectionGraph
It creates an object from class FlowConnectionGraph
. The function verifies whether the graph is
directed and the vertices are named. The object can be used further to create subsets based on the criterion of
flow connectedness. See Vignette "Subsets and Coordinates".
FlowConnectionGraph(g)
g |
a directed graph acoording to the water flow. An object of class "igraph". It should have named vertices. |
An object of class FlowConnectionGraph
with one slot containing the directed graph.
seg_dir<- graph(c("2","paris", "meaux", "2", "melun", "2","5", "melun","nemours", "5", "sens", "5"), directed = TRUE) fcg<- FlowConnectionGraph(seg_dir) rds<- FlowConnect() # call method subset to create subsets subset(rds, fcg, seg_dir)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.