refactored to rivertrail
include outbound ranks also, the additional map-reduce is a higher overhead.