Skip to content

Commit

Permalink
jgalgo-bench: avoid using fastutil classes that are not in fastutil-core
Browse files Browse the repository at this point in the history
  • Loading branch information
barakugav committed Dec 27, 2023
1 parent 2145931 commit 3a7fe5b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import static com.jgalgo.internal.util.Range.range;
import java.util.Random;
import java.util.function.Function;
import com.jgalgo.gen.BarabasiAlbertGraphGenerator;
import com.jgalgo.gen.GnmBipartiteGraphGenerator;
import com.jgalgo.gen.GnmGraphGenerator;
Expand All @@ -30,7 +31,6 @@
import com.jgalgo.graph.IdBuilderInt;
import com.jgalgo.graph.IntGraph;
import com.jgalgo.graph.IntGraphFactory;
import it.unimi.dsi.fastutil.booleans.Boolean2ObjectFunction;

public class GraphsTestUtils extends TestUtils {

Expand Down Expand Up @@ -81,8 +81,8 @@ public static IntGraph randTree(int n, long seed) {
.generateMutable();
}

public static Boolean2ObjectFunction<IntGraph> defaultGraphImpl() {
return directed -> IntGraphFactory.newInstance(directed).newGraph();
public static Function<Boolean, IntGraph> defaultGraphImpl() {
return directed -> IntGraphFactory.newInstance(directed.booleanValue()).newGraph();
}

public static IWeightsDouble assignRandWeights(IntGraph g, long seed) {
Expand Down

0 comments on commit 3a7fe5b

Please sign in to comment.