graph and dijkstra algorithm
test code