code: public void connect(int from, int to, double weight)
      {
          edgesTo[to].add(new EdgeFrom(from, weight, vertexes[from].word + '@' + vertexes[to].word));
      }
docs: 连接两个节点
  @param from 起点
  @param to 终点
  @param weight 花费