Skip to content

Commit

Permalink
Minor smaller size
Browse files Browse the repository at this point in the history
  • Loading branch information
IoannisPanagiotas committed Aug 9, 2024
1 parent b9ee481 commit a0e39ac
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@
import com.carrotsearch.hppc.LongArrayDeque;
import org.neo4j.gds.Algorithm;
import org.neo4j.gds.api.Graph;
import org.neo4j.gds.collections.ha.HugeLongArray;
import org.neo4j.gds.collections.haa.HugeAtomicDoubleArray;
import org.neo4j.gds.collections.haa.HugeAtomicLongArray;
import org.neo4j.gds.core.concurrency.Concurrency;
import org.neo4j.gds.core.concurrency.ParallelUtil;
import org.neo4j.gds.mem.MemoryEstimation;
import org.neo4j.gds.mem.MemoryEstimations;
import org.neo4j.gds.mem.MemoryRange;
import org.neo4j.gds.collections.ha.HugeLongArray;
import org.neo4j.gds.core.utils.progress.tasks.ProgressTracker;
import org.neo4j.gds.core.utils.queue.HugeLongPriorityQueue;
import org.neo4j.gds.mem.Estimate;
import org.neo4j.gds.mem.MemoryEstimation;
import org.neo4j.gds.mem.MemoryEstimations;
import org.neo4j.gds.mem.MemoryRange;
import org.neo4j.gds.paths.ImmutablePathResult;
import org.neo4j.gds.paths.PathResult;
import org.neo4j.gds.paths.delta.TentativeDistances;
Expand Down Expand Up @@ -304,7 +304,7 @@ public PathFindingResult compute() {
mergedWithSource.set(startNode);
this.distances.set(startNode, -1, 0);

HugeLongPriorityQueue terminalQueue = HugeLongPriorityQueue.min(unvisitedTerminal.size());
HugeLongPriorityQueue terminalQueue = HugeLongPriorityQueue.min(graph.nodeCount());
var terminalQueueLock = new ReentrantLock();
var tasks = IntStream
.range(0, concurrency.value())
Expand Down

0 comments on commit a0e39ac

Please sign in to comment.