Added option to construct a reverse routing network.
It might be useful in some cases.

Signed-off-by: Ted Steiner <tsteiner2@gmail.com>
Segment types now contain their distance.

Signed-off-by: Ted Steiner <tsteiner2@gmail.com>