public IEnumerable <SpaceTimeNode> GetNeighbours(SpaceTimeNode node) { foreach (var n in Graph.AdjacentVertices(Graph.GetTileAtPos(node.X, node.Y))) { yield return(new SpaceTimeNode(n.X, n.Y, node.T + 1)); } yield return(node.Next()); }
public AbstractTile GetTile(SpaceTimeNode node) => Graph.GetTileAtPos(node.X, node.Y);