code challenge gem dijkstra built with graph object