core/src/de/lksbhm/mona/puzzle/representations/linked/LinkedTileBoardGenerator.java
/**
	 * Takes a node and recursively visits all not yet visited neighboring nodes
	 * 
	 * @param node
	 */
Takes a node and recursively visits all not yet visited neighboring nodes

@param node
Takes a node and recursively visits all not yet visited neighboring nodes @param node
private void visitNode(LinkedTile node) {
		LinkedTile[] neighbors = node.getNeightbors();
		ArrayRandomIterator<LinkedTile> it = new ArrayRandomIterator<LinkedTile>(
				neighbors, random);
		while (it.hasNext()) {
			LinkedTile neighbor = it.next();
			if (neighbor.getParent() == null) {
				neighbor.setParent(node);
				visitNode(neighbor);
			}
		}
	}
private void visitNode ( LinkedTile node ) { LinkedTile [ ] neighbors = node . getNeightbors ( ) ; ArrayRandomIterator < LinkedTile > it = new ArrayRandomIterator < LinkedTile > ( neighbors , random ) ; while ( it . hasNext ( ) ) { LinkedTile neighbor = it . next ( ) ; if ( neighbor . getParent ( ) == null ) { neighbor . setParent ( node ) ; visitNode ( neighbor ) ; } } }
Takes a node and recursively visits all not yet visited neighboring nodes
Takes a node and recursively visits all not yet visited neighboring nodes