Builds the linear graph equivalent of agent_pipeline() (node i is agent i,
each feeding the next). The original agent_pipeline() keeps its own simple
implementation; this exists to show the graph can express it and to let a linear
pipeline gain checkpointing when wanted.
Arguments
- agents
A list of Agents, in order.
