2121
2222import com .carrotsearch .hppc .BitSet ;
2323import org .apache .commons .lang3 .mutable .MutableBoolean ;
24+ import org .jetbrains .annotations .TestOnly ;
2425import org .neo4j .gds .Algorithm ;
2526import org .neo4j .gds .api .Graph ;
2627import org .neo4j .gds .core .concurrency .ParallelUtil ;
@@ -51,7 +52,6 @@ public class ShortestPathsSteinerAlgorithm extends Algorithm<SteinerTreeResult>
5152
5253 private int binSizeThreshold ;
5354
54-
5555 public ShortestPathsSteinerAlgorithm (
5656 Graph graph ,
5757 long sourceId ,
@@ -70,19 +70,21 @@ public ShortestPathsSteinerAlgorithm(
7070 this .isTerminal = createTerminals ();
7171 this .applyRerouting = applyRerouting ;
7272 this .executorService = executorService ;
73+ this .binSizeThreshold = SteinerBasedDeltaStepping .BIN_SIZE_THRESHOLD ;
7374 }
7475
75- ShortestPathsSteinerAlgorithm (
76- Graph graph ,
77- long sourceId ,
78- List <Long > terminals ,
79- double delta ,
80- int concurrency ,
81- boolean applyRerouting ,
82- int binSizeThreshold ,
83- ExecutorService executorService
84- ) {
85- super (ProgressTracker .NULL_TRACKER );
76+ @ TestOnly
77+ ShortestPathsSteinerAlgorithm (
78+ Graph graph ,
79+ long sourceId ,
80+ List <Long > terminals ,
81+ double delta ,
82+ int concurrency ,
83+ boolean applyRerouting ,
84+ int binSizeThreshold ,
85+ ExecutorService executorService
86+ ) {
87+ super (ProgressTracker .NULL_TRACKER );
8688 this .graph = graph ;
8789 this .sourceId = sourceId ;
8890 this .terminals = terminals ;
0 commit comments