View source: R/gr_flowConnection.R
flowConnection | R Documentation |
Designed for use on river network and its representation as a tree. It is used on object of class
FlowConnectionGraph
.
flowConnection(obj, ...) ## S3 method for class 'FlowConnectionGraph' flowConnection(obj, ...)
obj |
object of class |
... |
additional arguments |
As input it takes a directed tree according to the flow connection and the output is a matrix of 1's and 0's 1 meaning flow connectedness between node i and node j.
A symmetric matrix with named rows and columns and with entries one or zero with one on element ij if location i is flow onnected with location j.
g<- graph(c(1,2,3,2, 2,4,4,5), directed=TRUE) g<- set.vertex.attribute(g, "name", V(g), c("a", "b", "c", "d", "e")) fcg<- FlowConnectionGraph(g) flowConnection(fcg)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.