Logo Search packages:      
Sourcecode: cdk version File versions  Download package

double [][] org::openscience::cdk::graph::invariant::EquivalentClassPartitioner::buildNodeMatrix ( double[]  nodeSequence  )  [inline]

Build node Matrix

Parameters:
nodeSequence an array contains node number for each atom
Returns:
node Matrix

Definition at line 280 of file EquivalentClassPartitioner.java.

Referenced by getTopoEquivClassbyHuXu().

      {
             int i,j,k;
            for(i=0;i<nodeNumber;i++)
            {
                  nodeMatrix[i][0]=nodeSequence[i];
                  for(j=1;j<=layerNumber;j++)
                  {
                        nodeMatrix[i][j]=0.0;
                        for(k=0;k<nodeNumber;k++)
                              if(apspMatrix[i][k]==j)nodeMatrix[i][j]+=nodeSequence[k];
                  }
            }
            return nodeMatrix;
      }


Generated by  Doxygen 1.6.0   Back to index