powered by
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.
# NOT RUN { g <- sbn_create(10, 0.7) sbn_get_upstream(g, 2) # }
Run the code above in your browser using DataLab