change 'algorithme similaire a djikstra' to this, because it isn't djikstra