powered by
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.
# NOT RUN { 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) # }
Run the code above in your browser using DataLab