Learn R Programming

gremes (version 0.1.1)

FlowConnectionGraph: 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)

Value

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

Arguments

g

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

Examples

Run this code
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)

Run the code above in your browser using DataLab