# `GSLayer reconnectNodes:`

*Instance Method*

Reconnects four on-curve nodes according to their tangent directions.

## Declaration

```swift
func reconnect(_ originNodes: [GSNode]) -> Bool
```

```objc
- (BOOL) reconnectNodes:(NSArray<GSNode *> *) originNodes;
```

```python
reconnectNodes_(originNodes: list[GSNode]) -> bool
```

## Return Value

Whether all resulting endpoints could be paired and connected.

## See Also

### Connecting Paths

- [`GSLayer connectPathsWithNode:andNode:`](/Core/GlyphsCore/GSLayer/connectPathsWithNode:andNode:) — Connects two path endpoints.
- [`GSLayer connectPathsWithNode:andNode:extendPath:`](/Core/GlyphsCore/GSLayer/connectPathsWithNode:andNode:extendPath:) — Connects two path endpoints and optionally adjusts their adjacent segments.
- [`GSLayer dividePathAtNode:`](/Core/GlyphsCore/GSLayer/dividePathAtNode:) — Opens or divides the path at a node.
- [`GSLayer reconnectNodesAtNode1:node2:offset:`](/Core/GlyphsCore/GSLayer/reconnectNodesAtNode1:node2:offset:) — Divides paths at two on-curve nodes and reconnects the resulting endpoints crosswise.
- [`GSLayer connectAllOpenPaths`](/Core/GlyphsCore/GSLayer/connectAllOpenPaths) — Connects coincident endpoints of open paths.
- [`GSLayer closeOpenPaths:`](/Core/GlyphsCore/GSLayer/closeOpenPaths:) — Connects the nearest endpoints of a collection of open paths.

