sbn_get_downstream {SBN}R Documentation

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

g <- sbn_create(10, 0.7)
sbn_get_downstream(g, 10)


[Package SBN version 1.0.0 Index]