code: public int getNumberOfConnections() {
  		int ret = 0;
  		for (int i = 0; i < square.size(); i++) {
  			if( edges[i] != null )
  				ret++;
  		}
  		return ret;
  	}
docs: Computes the number of edges attached to this node