|
34 | 34 | import org.neo4j.graphdb.Relationship; |
35 | 35 | import org.neo4j.graphdb.RelationshipType; |
36 | 36 | import org.neo4j.graphdb.Transaction; |
| 37 | +import org.neo4j.graphdb.Direction; |
37 | 38 | import org.neo4j.internal.kernel.api.exceptions.KernelException; |
38 | 39 | import org.neo4j.kernel.impl.proc.Procedures; |
39 | 40 | import org.neo4j.kernel.internal.GraphDatabaseAPI; |
@@ -142,20 +143,20 @@ private static Relationship createRelation(Node from, Node to) { |
142 | 143 |
|
143 | 144 | @Benchmark |
144 | 145 | public long _01_benchmark_ASP() { |
145 | | - return new AllShortestPaths(graph, Pools.DEFAULT, 8) |
| 146 | + return new AllShortestPaths(graph, Pools.DEFAULT, 8, Direction.OUTGOING) |
146 | 147 | .resultStream() |
147 | 148 | .count(); |
148 | 149 | } |
149 | 150 |
|
150 | 151 | @Benchmark |
151 | 152 | public long _02_benchmark_MS_ASP() { |
152 | | - return new MSBFSAllShortestPaths(graph, Pools.DEFAULT_CONCURRENCY, Pools.DEFAULT) |
| 153 | + return new MSBFSAllShortestPaths(graph, Pools.DEFAULT_CONCURRENCY, Pools.DEFAULT, Direction.OUTGOING) |
153 | 154 | .resultStream().count(); |
154 | 155 | } |
155 | 156 |
|
156 | 157 | @Benchmark |
157 | 158 | public long _03_benchmark_Huge_MS_ASP() { |
158 | | - return new HugeMSBFSAllShortestPaths((HugeGraph) graph, AllocationTracker.EMPTY, Pools.DEFAULT_CONCURRENCY, Pools.DEFAULT) |
| 159 | + return new HugeMSBFSAllShortestPaths((HugeGraph) graph, AllocationTracker.EMPTY, Pools.DEFAULT_CONCURRENCY, Pools.DEFAULT, Direction.OUTGOING) |
159 | 160 | .resultStream().count(); |
160 | 161 | } |
161 | 162 | } |
0 commit comments