Table of Contents

Class ExpressionBuilderGraph

Namespace
Bonsai.Expressions
Assembly
Bonsai.Core.dll

Represents a directed acyclic graph of expression generator nodes. Edges between generator nodes represent input assignments that chain the output of one generator to the input of the next. The order of the inputs is determined by the indices of the input arguments.

public class ExpressionBuilderGraph : DirectedGraph<ExpressionBuilder, ExpressionBuilderArgument>, ICollection<Node<ExpressionBuilder, ExpressionBuilderArgument>>, IReadOnlyList<Node<ExpressionBuilder, ExpressionBuilderArgument>>, IReadOnlyCollection<Node<ExpressionBuilder, ExpressionBuilderArgument>>, IEnumerable<Node<ExpressionBuilder, ExpressionBuilderArgument>>, IEnumerable
Inheritance
ExpressionBuilderGraph
Implements
Inherited Members
Extension Methods

Constructors

ExpressionBuilderGraph()

Initializes a new instance of the ExpressionBuilderGraph class.

public ExpressionBuilderGraph()

Methods

AddEdge(Node<ExpressionBuilder, ExpressionBuilderArgument>, Node<ExpressionBuilder, ExpressionBuilderArgument>, int)

Creates and adds a new edge specifying an argument assignment of the source node to the target node with the specified index.

public Edge<ExpressionBuilder, ExpressionBuilderArgument> AddEdge(Node<ExpressionBuilder, ExpressionBuilderArgument> from, Node<ExpressionBuilder, ExpressionBuilderArgument> to, int index)

Parameters

from Node<ExpressionBuilder, ExpressionBuilderArgument>

The node that is the source of the edge.

to Node<ExpressionBuilder, ExpressionBuilderArgument>

The node that is the target of the edge.

index int

The zero-based index of the input argument.

Returns

Edge<ExpressionBuilder, ExpressionBuilderArgument>

The created edge.