Oracle interview question

Dijkistra shortest path algorithm similar to it Java concurrency