A Graph implementation with Dijkstra's primitive algorithm