sbn_get_hw.Rd
Find all headwater nodes in a network.
sbn_get_hw(g)
a river network as an igraph object. Must be a downstream directed graph.
A vector of headwater node id's.
g <- sbn_create(10, 0.7) sbn_get_hw(g) #> [1] 6 7 8 9 10