Learn R Programming

SBN (version 1.0.0)

sbn_get_outlet: Find river mouth node

Description

Find river mouth node from a directed graph.

Usage

sbn_get_outlet(g)

Arguments

g

a river network as an igraph object. Must be a downstream directed graph.

Value

An integer identifying the id of river mouth node.

Examples

Run this code
# NOT RUN {
g <- sbn_create(10, 0.7)
sbn_get_outlet(g)

# }

Run the code above in your browser using DataLab