code: public double[] buildWeightMatrix(double[][] nodeMatrix, double[][] bondMatrix) {
          for (int i = 0; i < nodeNumber; i++) {
              weight[i + 1] = nodeMatrix[i][0];
              for (int j = 0; j < layerNumber; j++) {
                  weight[i + 1] += nodeMatrix[i][j + 1] * bondMatrix[i][j] * Math.pow(10.0, (double) -(j + 1));
              }
          }
          weight[0] = 0.0;
          return weight;
      }
docs: Build weight array for the given node matrix and bond matrix.
  
  @param nodeMatrix array contains node information
  @param bondMatrix array contains bond information
  @return weight array for the node