Revert "Dijkstra java"

This reverts commit e7cd475d7c6b2770a5f1336339dbbd212e29d495.
Revert "Revert "Dijkstra java""

This reverts commit 5dafa2adb188a8f3b0484593522f3025c68c2d8e.