Add GEdgeType class and finish Dijkstra.