Class NoCycleConnectionValidator
- Namespace
- FlowGraph.Avalonia.Validation
- Assembly
- FlowGraph.Avalonia.dll
Connection validator that prevents cycles in the graph.
public class NoCycleConnectionValidator : IConnectionValidator
- Inheritance
-
NoCycleConnectionValidator
- Implements
- Inherited Members
Methods
Validate(ConnectionContext)
Validates whether a connection can be made between two ports.
public ConnectionValidationResult Validate(ConnectionContext context)
Parameters
contextConnectionContextThe connection context containing source and target information.
Returns
- ConnectionValidationResult
A validation result indicating whether the connection is allowed.