sbn_down_dir: Convert to a downstream directed network

Description Usage Arguments Value Examples

View source: R/sbn_down_dir.R

Description

Convert an upstream directed or non-directed network to a downstream directed network.

Usage

1
sbn_down_dir(g, mouth)

Arguments

g

a river network as an igraph object.

mouth

river mouth vertex id.

Value

A downstream directed network.

Examples

1
2
3
4
5
6
7
g <- sbn_create(10, 0.7)

# to undirected
g <- sbn_change_dir(g, method = "undir")

# undirected to downstream directed
sbn_down_dir(g, mouth = 1)

SBN documentation built on Jan. 18, 2022, 1:08 a.m.