An implementation of the k shortest paths algorithm in Java