powered by
Change the upstream/downstream direction of an SBN to either, reversed or undirected.
sbn_change_dir(g, method = c("rev", "undir"))
a river network as an igraph object. Must be a downstream directed graph.
one of "rev" or "undir", determining what to convert the network to.
A river network as an igraph object.
# NOT RUN { g <- sbn_create(10, 0.7) sbn_change_dir(g, method = "rev") # }
Run the code above in your browser using DataLab