# `GSLayer reconnectNodesAtNode1:node2:offset:`

*Instance Method*

Divides paths at two on-curve nodes and reconnects the resulting endpoints crosswise.

## Declaration

```swift
func reconnectNodes(atNode1 node1: GSNode, node2: GSNode, offset: CGFloat)
```

```objc
- (void) reconnectNodesAtNode1:(GSNode *) node1 node2:(GSNode *) node2 offset:(CGFloat) offset;
```

```python
reconnectNodesAtNode1_node2_offset_(node1: GSNode, node2: GSNode, offset: float)
```

## Parameters

- `offset` — The distance by which to extend adjacent segments before reconnecting them.

## 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 reconnectNodes:`](/Core/GlyphsCore/GSLayer/reconnectNodes:) — Reconnects four on-curve nodes according to their tangent directions.
- [`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.

