public GraphBuildInstructionSpanSet GetSpans()
        {
            GraphBuildInstructionSpanSet output = new GraphBuildInstructionSpanSet();

            foreach (IGraphBuildInstruction head in this)
            {
                output.Add(head);
            }

            return(output);
        }
Ejemplo n.º 2
0
        public virtual TGraph InstructionsToGraph(GraphBuildInstructionSequence instructions)
        {
            TGraph output = new TGraph();
            GraphBuildInstructionSpanSet spans = instructions.GetSpans();

            foreach (var span in spans)
            {
                ExecuteSpan(span, output);
            }

            return(output);
        }