# ConnectTo

> Creates an edge between this port and the 'other' port.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Experimental.GraphView](/engine/6000.3/script-reference/unityeditor/experimental/graphview.md)
* **Assembly:** UnityEditor

## ConnectTo(Port)

Creates an edge between this port and the 'other' port.

```csharp
public Edge ConnectTo(Port other)
```

### Parameters

**** (\[Port]\(/engine/6000.3/script-reference/unityeditor/experimental/graphview/port)): Other port to connect to.

### Returns

| Type                                                                               | Description         |
| ---------------------------------------------------------------------------------- | ------------------- |
| [Edge](/engine/6000.3/script-reference/unityeditor/experimental/graphview/edge.md) | Newly created edge. |

### Remarks

The new edge still needs to be added to the graph.

## ConnectTo\<T>(Port)

Creates an edge between this port and the 'other' port.

```csharp
public T ConnectTo<T>(Port other) where T : Edge, new()
```

### Parameters

**** (\[Port]\(/engine/6000.3/script-reference/unityeditor/experimental/graphview/port)): Other port to connect to.

### Returns

| Type | Description         |
| ---- | ------------------- |
| T    | Newly created edge. |

### Remarks

The new edge still needs to be added to the graph.
