# WorkflowGraphEdge

> Tracon documentation. Tracon is a .NET package family that adds a control
> plane on Microsoft Agent Framework, published as NuGet packages that run
> inside your own ASP.NET Core application.
>
> Page: https://tracon.dev/api/tracon.workflowgraphedge/
> Summary: WorkflowGraphEdge: Represents the connection between two nodes.

<div class="api-provenance">Namespace Tracon · Assembly <code>Tracon.Abstractions.dll</code></div>

Represents the connection between two nodes.

```csharp
public sealed record WorkflowGraphEdge : IEquatable<WorkflowGraphEdge>
```

<dl class="api-relations"><dt>Inheritance</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.object">object</a> ← <a href="/api/tracon.workflowgraphedge/">WorkflowGraphEdge</a></dd><dt>Implements</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable&lt;WorkflowGraphEdge&gt;</a></dd><dt>Inherited Members</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.object.gettype">object.GetType()</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.tostring">object.ToString()</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)">object.Equals(object?)</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)">object.Equals(object?, object?)</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.referenceequals">object.ReferenceEquals(object?, object?)</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.gethashcode">object.GetHashCode()</a></dd></dl>

## Constructors

### <a id="Tracon_WorkflowGraphEdge__ctor"></a> WorkflowGraphEdge\(\)

```csharp
public WorkflowGraphEdge()
```

## Properties

### <a id="Tracon_WorkflowGraphEdge_From"></a> From

Gets the source node's identifier.

```csharp
public required string From { get; init; }
```

#### Property Value

 [string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="Tracon_WorkflowGraphEdge_Kind"></a> Kind

Gets the edge's kind.

```csharp
public required WorkflowEdgeKind Kind { get; init; }
```

#### Property Value

 [WorkflowEdgeKind](/api/tracon.workflowedgekind/)

### <a id="Tracon_WorkflowGraphEdge_To"></a> To

Gets the target node's identifier.

```csharp
public required string To { get; init; }
```

#### Property Value

 [string](https://learn.microsoft.com/dotnet/api/system.string)

## Methods

### <a id="Tracon_WorkflowGraphEdge_Equals_System_Object_"></a> Equals\(object?\)

```csharp
public override bool Equals(object? obj)
```

#### Parameters

`obj` [object](https://learn.microsoft.com/dotnet/api/system.object)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="Tracon_WorkflowGraphEdge_Equals_Tracon_WorkflowGraphEdge_"></a> Equals\(WorkflowGraphEdge?\)

```csharp
public bool Equals(WorkflowGraphEdge? other)
```

#### Parameters

`other` [WorkflowGraphEdge](/api/tracon.workflowgraphedge/)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="Tracon_WorkflowGraphEdge_GetHashCode"></a> GetHashCode\(\)

```csharp
public override int GetHashCode()
```

#### Returns

 [int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="Tracon_WorkflowGraphEdge_ToString"></a> ToString\(\)

```csharp
public override string ToString()
```

#### Returns

 [string](https://learn.microsoft.com/dotnet/api/system.string)

## Operators

### <a id="Tracon_WorkflowGraphEdge_op_Equality_Tracon_WorkflowGraphEdge_Tracon_WorkflowGraphEdge_"></a> operator ==\(WorkflowGraphEdge?, WorkflowGraphEdge?\)

```csharp
public static bool operator ==(WorkflowGraphEdge? left, WorkflowGraphEdge? right)
```

#### Parameters

`left` [WorkflowGraphEdge](/api/tracon.workflowgraphedge/)?

`right` [WorkflowGraphEdge](/api/tracon.workflowgraphedge/)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="Tracon_WorkflowGraphEdge_op_Inequality_Tracon_WorkflowGraphEdge_Tracon_WorkflowGraphEdge_"></a> operator \!=\(WorkflowGraphEdge?, WorkflowGraphEdge?\)

```csharp
public static bool operator !=(WorkflowGraphEdge? left, WorkflowGraphEdge? right)
```

#### Parameters

`left` [WorkflowGraphEdge](/api/tracon.workflowgraphedge/)?

`right` [WorkflowGraphEdge](/api/tracon.workflowgraphedge/)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)
