Walkable<E>.star constructor

Walkable<E>.star(
  1. Set<E> points
)

Creates a walkable with a star topology.

Each node in the star is connected to every other node in the star.

Example

final walkable = Walkable.star(['a', 'b', 'c']);

print(walkable.successors('a')); // ['b', 'c']
print(walkable.successors('b')); // ['a', 'c']
print(walkable.successors('c')); // ['a', 'b']

Implementation

factory Walkable.star(Set<E> points) = _StarWalkable<E>;