Skip to contents

Find and uniquely identify braids in a network of flowlines, given a dataframe containing comid, fromnode, tonode and divergence as columns. 'find_braids()" identifies braids as cycles in the graph representation of the river network. Internal function for use in 'get_braid_list()'

Usage

unique_braids(network, start = NULL, verbose = FALSE)

Arguments

network

The network object representing the river network.

start

Optional argument specifying the starting point for braid detection.

verbose

Logical indicating whether to display verbose messages during the braid detection process.

Value

list of braid IDs with COMIDs within each braid