# `GSPath checkConnectionForNode:`

*Instance Method*

Sets a node connection based on the alignment of adjacent nodes.

## Declaration

```swift
func checkConnection(for node: GSNode)
```

```objc
- (void) checkConnectionForNode:(GSNode *) node;
```

```python
checkConnectionForNode_(node: GSNode)
```

## See Also

### Editing Nodes

- [`GSPath setSmooth:withCenterPoint:oppositePoint:`](/Core/GlyphsCore/GSPath/setSmooth:withCenterPoint:oppositePoint:) — Aligns a node opposite a point about a center point while preserving its distance from the center point.
- [`GSPath setSmooth:withCenterNode:oppositeNode:`](/Core/GlyphsCore/GSPath/setSmooth:withCenterNode:oppositeNode:) — Aligns a node opposite another node about a center node while preserving its distance from the center node.
- [`GSPath setMirrored:withCenterPoint:oppositePoint:`](/Core/GlyphsCore/GSPath/setMirrored:withCenterPoint:oppositePoint:) — Moves an off-curve node to the reflection of a point about a center point.
- [`GSPath checkConnections`](/Core/GlyphsCore/GSPath/checkConnections) — Normalizes node types and connections based on adjacent nodes.
- [`GSPath setLocked:withPoint:`](/Core/GlyphsCore/GSPath/setLocked:withPoint:) — Moves an off-curve node by an offset while preserving its locked direction.
- [`GSPath setLocked:shadow:withPoint:`](/Core/GlyphsCore/GSPath/setLocked:shadow:withPoint:) — Moves an off-curve node by an offset, constrained using a corresponding node in another path.

