fixed number of arguments for dijkstra and dijkstraR functions