# `GSNode.connection`

*Instance Property*

The connection between the incoming and outgoing path segments.

## Declaration

```swift
var connection: GSNode.Connection { get set }
```

```objc
@property (nonatomic, assign) GSNodeConnection connection;
```

[See also `connection` in the Python API](https://docu.glyphsapp.com/#GSNode.connection)

```python
pyobjc_instanceMethods.connection() -> GSNodeConnection
pyobjc_instanceMethods.setConnection_(connection: GSNodeConnection)
```

## See Also

### Connection

- [`GSNode.GSNodeConnection`](/Core/GlyphsCore/GSNode/GSNodeConnection) — The transition of a path through an on-curve node.
- [`GSNode.isSmooth`](/Core/GlyphsCore/GSNode/isSmooth) — Convenience to simplify checking the connection.
- [`GSNode checkConnection`](/Core/GlyphsCore/GSNode/checkConnection) — Automatically sets the connection for the node depending on the angle of the incoming and outgoing path segments.
- [`GSNode toggleConnection:`](/Core/GlyphsCore/GSNode/toggleConnection:) — Toggles the connection type between [`GSNodeConnection.GSNodeConnectionSharp`](/Core/GlyphsCore/GSNode/GSNodeConnection/GSNodeConnectionSharp) and [`GSNodeConnection.GSNodeConnectionSmooth`](/Core/GlyphsCore/GSNode/GSNodeConnection/GSNodeConnectionSmooth).
- [`GSNode toggleConnection:superSmooth:`](/Core/GlyphsCore/GSNode/toggleConnection:superSmooth:) — Toggles the connection type between [`GSNodeConnection.GSNodeConnectionSharp`](/Core/GlyphsCore/GSNode/GSNodeConnection/GSNodeConnectionSharp) and [`GSNodeConnection.GSNodeConnectionSmooth`](/Core/GlyphsCore/GSNode/GSNodeConnection/GSNodeConnectionSmooth)/[`GSNodeConnection.GSNodeConnectionSuperSmooth`](/Core/GlyphsCore/GSNode/GSNodeConnection/GSNodeConnectionSuperSmooth).

