Method AddEdge
- Namespace
- Bonsai.Expressions
- Assembly
- Bonsai.Core.dll
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
- fromNode<ExpressionBuilder, ExpressionBuilderArgument>
- The node that is the source of the edge. 
- toNode<ExpressionBuilder, ExpressionBuilderArgument>
- The node that is the target of the edge. 
- indexint
- The zero-based index of the input argument. 
Returns
- Edge<ExpressionBuilder, ExpressionBuilderArgument>
- The created edge.