public GraphBuildInstructionSpanSet GetSpans() { GraphBuildInstructionSpanSet output = new GraphBuildInstructionSpanSet(); foreach (IGraphBuildInstruction head in this) { output.Add(head); } return(output); }
public virtual TGraph InstructionsToGraph(GraphBuildInstructionSequence instructions) { TGraph output = new TGraph(); GraphBuildInstructionSpanSet spans = instructions.GetSpans(); foreach (var span in spans) { ExecuteSpan(span, output); } return(output); }