modify graph algorithms
shortest path algorithm update