code: private void calculateNodeScores(List<TreeNode> sphereNodes) throws CDKException {
          TreeNode treeNode = null;
          for (int i = 0; i < sphereNodes.size(); i++) {
              treeNode = (TreeNode) sphereNodes.get(i);
              treeNode.score += getElementRank(treeNode.symbol);
              if (treeNode.bondType <= 4) {
                  treeNode.score += bondRankings[(int) treeNode.bondType];
              } else {
                  throw new CDKException("Unknown bond type encountered in HOSECodeGenerator");
              }
          }
      }
docs: Determines the ranking score for each node, allowing for a sorting of nodes
  within one sphere.
  
  @param  sphereNodes The nodes for which the score is to be calculated.
  @exception  org.openscience.cdk.exception.CDKException  Thrown if something goes wrong.