| add_topo_sort | R Documentation |
calls sort_network without support for splitting the network
and adds a nrow:1 topo_sort attribute.
add_topo_sort(x, outlets = NULL)
## S3 method for class 'data.frame'
add_topo_sort(x, outlets = NULL)
## S3 method for class 'hy'
add_topo_sort(x, outlets = NULL)
## S3 method for class 'hy_node'
add_topo_sort(x, outlets = NULL)
## S3 method for class 'hy_flownetwork'
add_topo_sort(x, outlets = NULL)
## S3 method for class 'hy_topo'
add_topo_sort(x, outlets = NULL)
x |
data.frame network compatible with hydroloom_names. |
outlets |
same as id in x. if specified, only the network emanating from these outlets will be considered and returned. |
Required attributes: id, toid
data.frame containing a topo_sort attribute.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.