The river flows along the northeastern edge of the San Rafael Swell to the ghost town of Woodside, at which point it proceeds to the east, joining the Green River in Gray Canyon after flowing a distance of 137 miles .