leave out the template argument MAX_DIST of the Graph.
fix an error in the constructor from GeometricGraph to TopologicalGraph.