NodeGraphConnectionPolicy
Strategy interface defining rules and compatibility validation for forming connections between ports.
Overview
Strategy interface defining rules and compatibility validation for forming connections between ports. Provides extensive layout configuration and interaction capabilities.
API
NodeGraphConnectionPolicy::validate(NodeGraph, NodeGraphPortRef, NodeGraphPortRef)
Validates whether a connection can be established between source and target ports.
| Parameter | Type | Description |
|---|---|---|
graph |
NodeGraph |
The graph parameter. |
from |
NodeGraphPortRef |
The source port reference. |
to |
NodeGraphPortRef |
The destination port reference. |
Returns NodeGraphConnectionValidation: The connection validation result..