r.stream.order Error finding nodes.
|Reported by:||hcho||Owned by:|
When a cell has five tributaries, ram_number_of_tribs (or seg_number_of_tribs) doesn't complain (trib > 5 in line 17), but ram_stream_topology raises a fatal error with the same counting logic (trib > 4 in line 89). I think 5 incoming tributaries, 1 outgoing and 2 non-stream cells should be fine here too.
IMHO, lines 89 and 308 should also be trib > 5 for consistency.