sbn_get_downstream.Rd
Find all nodes downstream of a given node.
sbn_get_downstream(g, node)
a river network as an igraph object. Must be a downstream directed graph.
target node to get all downstream nodes of.
a vector of downstream node id's.
g <- sbn_create(10, 0.7)
sbn_get_downstream(g, 10)
#> [1] 5 2 1