code: static SquareNode findSeedNode(List<SquareNode> cluster) {
  		SquareNode seed = null;
  
  		for (int i = 0; i < cluster.size(); i++) {
  			SquareNode n = cluster.get(i);
  			int numConnections = n.getNumberOfConnections();
  			if( numConnections == 0 || numConnections > 2 )
  				continue;
  			seed = n;
  			break;
  		}
  		return seed;
  	}
docs: Finds a seed with 1 or 2 edges.