sbn_down_dir function

Convert to a downstream directed network

Convert to a downstream directed network

Convert an upstream directed or non-directed network to a downstream directed network.

sbn_down_dir(g, mouth)

Arguments

  • g: a river network as an igraph object.
  • mouth: river mouth vertex id.

Returns

A downstream directed network.

Examples

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)