dblodgett-usgs / hygeo

https://dblodgett-usgs.github.io/hygeo/dev/
Creative Commons Zero v1.0 Universal
6 stars 1 forks source link

If input data doesn't include nexuses, create them. #3

Closed dblodgett-usgs closed 4 years ago

dblodgett-usgs commented 4 years ago

Currently https://github.com/dblodgett-usgs/hygeo/blob/master/R/functions.R#L20 gets the toNode.

The least invasive would be to create a new function that can create nodes based on an edge list.

create_nexuses(fline, nexus_prefix = "...") would return nexuses the same as get_nexuses() such that it could just be called by get_nexuses()