Drainage network ordering

Algorithm

See also: