Class ExpressionBuilderGraph
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.
Inheritance
ExpressionBuilderGraph
Implements
Inherited Members
Namespace: Bonsai.Expressions
Assembly: Bonsai.Core.dll
Syntax
public class ExpressionBuilderGraph : DirectedGraph<ExpressionBuilder, ExpressionBuilderArgument>, ICollection<Node<ExpressionBuilder, ExpressionBuilderArgument>>, IReadOnlyList<Node<ExpressionBuilder, ExpressionBuilderArgument>>, IReadOnlyCollection<Node<ExpressionBuilder, ExpressionBuilderArgument>>, IEnumerable<Node<ExpressionBuilder, ExpressionBuilderArgument>>, IEnumerable
Constructors
| Improve this Doc View SourceExpressionBuilderGraph()
Initializes a new instance of the ExpressionBuilderGraph class.
Declaration
public ExpressionBuilderGraph()
Methods
| Improve this Doc View SourceAddEdge(Node<ExpressionBuilder, ExpressionBuilderArgument>, Node<ExpressionBuilder, ExpressionBuilderArgument>, Int32)
Creates and adds a new edge specifying an argument assignment of the source node to the target node with the specified index.
Declaration
public Edge<ExpressionBuilder, ExpressionBuilderArgument> AddEdge(Node<ExpressionBuilder, ExpressionBuilderArgument> from, Node<ExpressionBuilder, ExpressionBuilderArgument> to, int index)
Parameters
Type | Name | Description |
---|---|---|
Node<ExpressionBuilder, ExpressionBuilderArgument> | from | The node that is the source of the edge. |
Node<ExpressionBuilder, ExpressionBuilderArgument> | to | The node that is the target of the edge. |
Int32 | index | The zero-based index of the input argument. |
Returns
Type | Description |
---|---|
Edge<ExpressionBuilder, ExpressionBuilderArgument> | The created edge. |