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