sbn_get_hw: Find all headwater nodes

Description Usage Arguments Value Examples

View source: R/sbn_get_hw.R

Description

Find all headwater nodes in a network.

Usage

1

Arguments

g

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

Value

A vector of headwater node id's.

Examples

1
2
g <- sbn_create(10, 0.7)
sbn_get_hw(g)

flee598/SBN documentation built on Jan. 24, 2022, 11:37 p.m.