
Recompute hydrosequence for a flowpath network by topological sort
Source:R/network_properties.R
hf_recompute_hydroseq.RdNHD convention: lower `hydroseq` = more downstream (closer to outlet). Call after any topology-modifying operation (cycle break, toid reassignment) to keep `hydroseq` consistent with the current toid graph.