sbn_get_upstream: Find all nodes upstream of a given node

Description Usage Arguments Value Examples

View source: R/sbn_get_upstream.R

Description

Find all nodes upstream of a given node.

Usage

1

Arguments

g

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

node

target node to get all upstream nodes of.

Value

A vector of upstream node id's.

Examples

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

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