# `GSNode nodeIndex`

*Instance Method*

The index of the node in its path.

## Declaration

```objc
- (NSUInteger) nodeIndex;
```

```python
nodeIndex() -> int
```

## Discussion

Returns `0` if the node has no parent path.

## See Also

### Path Navigation

- [`GSNode nextOncurveNode`](/Core/GlyphsCore/GSNode/nextOncurveNode) — The next on-curve node in the path.
- [`GSNode previousOncurveNode`](/Core/GlyphsCore/GSNode/previousOncurveNode) — The previous on-curve node in the path.

