@classmethod
  def _mk_chain(cls, graph, sequence, states=[Waiting, Return]):
    prior_item = sequence[0]
    for state in states:
      for item in sequence:
        graph.update_state(prior_item, state([item]))
        prior_item = item
    return sequence
Return the distance between a new node and some other node.
dataset/ETHPy150Open pantsbuild/pants/tests/python/pants_test/engine/exp/test_scheduler.py/ProductGraphTest._mk_chain--crossover with--dataset/ETHPy150Open biocore/scikit-bio/skbio/tree/_nj.py/_otu_to_new_node