Still trying to figure out the bug in dijkstras algorithm. It returns false about once ever 100-200 random calls on graphs of a view thousand vertices and tens of thousands of edges.