to Dijkstra Bellman-Ford
click and drag to modify the graph