Table of Contents

Class Port

Namespace
FlowGraph.Core
Assembly
FlowGraph.Core.dll

Represents a connection point on a node where edges can attach. Ports define the interface for data flow between nodes.

public record Port : IEquatable<Port>
Inheritance
Port
Implements
Inherited Members

Properties

Id

Unique identifier for the port within its node.

public required string Id { get; init; }

Property Value

string

Label

Optional display label for the port.

public string? Label { get; init; }

Property Value

string

Position

The position of the port on the node. If null, defaults to Left for inputs and Right for outputs.

public PortPosition? Position { get; init; }

Property Value

PortPosition?

Type

The data type that this port accepts or produces. Used for connection validation.

public required string Type { get; init; }

Property Value

string