booldijkstraAlgorithm(constQList<T>elements,intstartIndex,intendIndex,QList<T>&elementPath,double(*distance)(constT&t1,constT&t2))// don't seperate parameters with new lines or documentation will break
booldijkstraAlgorithm(constQList<T>elements,intstartIndex,intendIndex,QList<T>&elementPath,std::function<double(constT&,constT&)>distance)// don't seperate parameters with new lines or documentation will break