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