Learn R Programming

SBN (version 1.0.0)

sbn_get_downstream: Find all downstream nodes

Description

Find all nodes downstream of a given node.

Usage

sbn_get_downstream(g, node)

Arguments

g

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

node

target node to get all downstream nodes of.

Value

a vector of downstream node id's.

Examples

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

# }

Run the code above in your browser using DataLab