GridWalkable<E>.all8Directions constructor
Creates a new lazily built weighted graph from a grid
.
Both the cardinal and ordinal directions are connected to each node.
Implementation
factory GridWalkable.all8Directions(
Grid<E> grid, {
double Function(E, E, Pos) weight = _defaultWeight,
}) {
return GridWalkable._(
grid,
Direction.all,
weight,
);
}