sbn_change_dir {SBN} | R Documentation |
Change the upstream/downstream direction of an SBN
Description
Change the upstream/downstream direction of an SBN to either, reversed or undirected.
Usage
sbn_change_dir(g, method = c("rev", "undir"))
Arguments
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. |
Value
A river network as an igraph object.
Examples
g <- sbn_create(10, 0.7)
sbn_change_dir(g, method = "rev")
[Package SBN version 1.0.0 Index]