createSpatialModel

public static SpatialModel<T> createSpatialModel<T>(int size, Map<Pair<Integer, Integer>, T> edges)
public static SpatialModel<T> createSpatialModel<T>(int size, BiFunction<Integer, Integer, T> edges)