sbn_get_upstream {SBN} | R Documentation |
Find all nodes upstream of a given node.
sbn_get_upstream(g, node)
g |
a river network as an igraph object. Must be a downstream directed graph. |
node |
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)