FlowConnectionGraph: Object of class 'FlowConnectionGraph'

View source: R/gr_flowConnectionInput.R

FlowConnectionGraphR Documentation

Object of class FlowConnectionGraph

Description

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

Usage

FlowConnectionGraph(g)

Arguments

g

a directed graph acoording to the water flow. An object of class "igraph". It should have named vertices.

Value

An object of class FlowConnectionGraph with one slot containing the directed graph.

Examples

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)

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