This function is experimental. The equivalent GRASS function should be used in most cases.

stream_order_igraph(tree)

Arguments

tree

igraph tree object

Examples

if (FALSE) {
tree <- create_reversed_tree(15)
igraph::E(tree)$weight <- stream_order_igraph(tree)
plot(tree, edge.width = igraph::E(tree)$weight,
         layout = layout_as_tree(tree, mode = "in"))
}