if (!(to.equals(this))) edges[currentEdge++] = to;
edges[currentEdge++] = to;
    public void addEdgeTo(FlatNode to)     {	//create the edge and weight arrays only if this node is connected	//to something	if ( ways == 0) {	    ways = 1;	    edges = new FlatNode[ways];	    weights = new int[1];	    weights[0] = 1;	}		// do not connect to oneself	if (!(to.equals(this)))	    edges[currentEdge++] = to;    }