update all

update
and add function of dijkstra