@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
Create a chain of dependencies (e.g. 'A'->'B'->'C'->'D') in the graph from a sequence.
dataset/ETHPy150Open pantsbuild/pants/tests/python/pants_test/engine/exp/test_scheduler.py/ProductGraphTest._mk_chain