stream_order_igraph: Calculate stream order with igraph

View source: R/stream_order.R

stream_order_igraphR Documentation

Calculate stream order with igraph

Description

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

Usage

stream_order_igraph(tree)

Arguments

tree

igraph tree object

Examples

## Not run: 
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"))

## End(Not run)

jsta/streamnet documentation built on July 9, 2022, 9:02 p.m.