Description Usage Arguments Value Examples
View source: R/sbn_change_dir.R
Change the upstream/downstream direction of an SBN to either, reversed or undirected.
1 | sbn_change_dir(g, method = c("rev", "undir"))
|
g |
a river network as an igraph object. Must be a downstream directed graph. |
method |
one of "rev" or "undir", determining what to convert the network to. |
A river network as an igraph object.
1 2 | g <- sbn_create(10, 0.7)
sbn_change_dir(g, method = "rev")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.