visited.add(adiacent);
//operazione di enqueue coda
Room x = (Room) adiacent.getX();
Room y = (Room) adiacent.getY();
Gate gate = (Gate) adiacent.getValue();
boolean open = gate.isOpen();
if (open) {
if (x.getPojo().getName().equalsIgnoreCase(node.getPojo().getName())) {
queue.offer(y);
addLink(node); //from node