List<PointNode> getNeighbors(PointNode node, {bool onlyWalkable: true})

Returns every PointNode that is adjacent to node.

Source

List<PointNode> getNeighbors(PointNode node, {bool onlyWalkable: true}) {
  Set<PointNode> neighbors = this._adjacencyMap[node];
  return neighbors.toList();
}