import java.util.Vector; public class Cnode extends Object { static int node[]; static int nnode[]; static int tdnode[][]; static int label[]; double distance1[]; public Cnode(){ } public Cnode(double[][] x, int n){ distance1 = new double[n]; for (int k=1; k 1) { for (int j=2; j<= node[A[i]]; j++) { if (tdnode[A[i]][j]==0) { tdnode[A[i]][j]=i; break; }}}} for (int j=1; j<=node[n]; j++) tdnode[n][j]=tdnode[n][j+1]; node[n]=node[n]-1; } public void Label(int A[],int n, boolean F[], int max){ int count=1; int nc=1; boolean b1=false; boolean b2=false; label=new int[n+1]; for (int k=1; k<=n; k++) label[k]=0; Vector stack=new Vector(); int[] consume=new int[n+1]; for (int jj=1; jj=0; k--){ if (consume[((Integer)stack.elementAt(k)).intValue()]>0) { i=((Integer)stack.elementAt(k)).intValue(); break;} } if (stack.size()==n) break; j=node[i]-consume[i]+1; } //end while(true) } }