@Parameters
public static Collection<Object[]> configs() {
final ImmutableMultimap graphAsMap =
ImmutableMultimap.builder().put(SW, SE).put(SE, NE).put(NE, NW).build();
final Table<Point, Point, Connection<LengthData>> graphAsTable =
HashBasedTable.create();
graphAsTable.put(SW, SE, Connection.create(SW, SE, LengthData.create(10)));
graphAsTable.put(SE, NE, Connection.create(SE, NE, LengthData.create(10)));
graphAsTable.put(NE, NW, Connection.create(NE, NW, LengthData.create(10)));
return Arrays.asList(new Object[][] {
{RoadModelBuilders.staticGraph(MultimapGraph.supplier(graphAsMap))},
{RoadModelBuilders.staticGraph(MultimapGraph.supplier(graphAsMap))
.withCache()},
{RoadModelBuilders
.staticGraph(TableGraph.<LengthData>supplier(ImmutableTable
.<Point, Point, Connection<LengthData>>copyOf(graphAsTable)))},
{RoadModelBuilders
.staticGraph(TableGraph.supplier(ImmutableTable
.<Point, Point, Connection<LengthData>>copyOf(graphAsTable)))
.withCache()},
{RoadModelBuilders.dynamicGraph(ListenableGraph
.supplier(TableGraph.supplier(ImmutableTable
.<Point, Point, Connection<LengthData>>copyOf(graphAsTable))))}
});
}