refactored Dijkstra
use the latest testng