Table of Contents

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

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.