code: public void setPathScore(Term from, Map<String, Double> relationMap) {
          // 维特比进行最优路径的构建
          double score = MathUtil.compuScore(from, this, relationMap);
          if (this.from == null || this.score == 0 || this.score >= score) {
              this.setFromAndScore(from, score);
          }
      }
docs: 核心构建最优的路径
  
  @param term