DataDictionary.Interpreter.BinaryExpression.CreateGraph C# (CSharp) Method

CreateGraph() public method

Creates the graph associated to this expression, when the given parameter ranges over the X axis
public CreateGraph ( DataDictionary.Interpreter.InterpretationContext context, Parameter parameter, ExplanationPart explain ) : Graph
context DataDictionary.Interpreter.InterpretationContext The interpretation context
parameter Parameter The parameters of *the enclosing function* for which the graph should be created
explain ExplanationPart
return Graph
        public override Graph CreateGraph(InterpretationContext context, Parameter parameter, ExplanationPart explain)
        {
            Graph retVal = base.CreateGraph(context, parameter, explain);

            Graph leftGraph = Left.CreateGraph(context, parameter, explain);
            if (leftGraph != null)
            {
                Graph rightGraph = Right.CreateGraph(context, parameter, explain);

                if (rightGraph != null)
                {
                    retVal = CombineGraph(leftGraph, rightGraph) as Graph;
                }
            }

            return retVal;
        }