Add javadoc to GEdge class and fix Dijkstra.