public Set<Direction> getNodeEdges(int x, int y) {
		boolean left = false;
		if(x != 0)
			left = containsEdge(x, y, Direction.LEFT);
		
		boolean right = false;
		if(x < getNodeCountX() - 1)
			right = containsEdge(x, y, Direction.RIGHT);
		
		boolean up = false;
		if(y != 0)
			up = containsEdge(x, y, Direction.ABOVE);
		
		boolean down = false;
		if(y < getNodeCountY() - 1)
			down = containsEdge(x, y, Direction.BELOW);
		
		return Direction.directions(left, right, up, down);
	}