sbn_down_dir.Rd
Convert an upstream directed or non-directed network to a downstream directed network.
sbn_down_dir(g, mouth)
a river network as an igraph object.
river mouth vertex id.
A downstream directed network.
g <- sbn_create(10, 0.7)
# to undirected
g <- sbn_change_dir(g, method = "undir")
# undirected to downstream directed
sbn_down_dir(g, mouth = 1)
#> IGRAPH 76b35b1 D--- 10 9 --
#> + edges from 76b35b1:
#> [1] 2->1 3->1 4->3 5->3 6->4 7->5 8->6 9->7 10->8