Work on writing graph.
Tested Bellman and simple Dijkstra.