first attempts at AbstractGraph, i.e. the actual CompareTo. As the interface changed slightly will try to merge with Iva's Tarjan's algo.