---
title: GKGridGraphNode
framework: gameplaykit
role: symbol
role_heading: Class
path: gameplaykit/gkgridgraphnode
---

# GKGridGraphNode

A node in a navigation graph, associated with a position on a discrete two-dimensional grid.

## Declaration

```swift
class GKGridGraphNode
```

## Overview

Overview Together, a network of nodes form a graph that describes the navigability of a game world. Use graph nodes with a GKGridGraph object (and methods of its superclass GKGraph) to perform actions that relate to the network of nodes as a whole, such as pathfinding to determine routes through the network. To learn more about graphs and pathfinding, see Pathfinding in GameplayKit Programming Guide.

## Topics

### Creating a Graph Node

- [init(gridPosition:)](gameplaykit/gkgridgraphnode/init(gridposition:).md)

### Inspecting a Node’s Position

- [gridPosition](gameplaykit/gkgridgraphnode/gridposition.md)

## Relationships

### Inherits From

- [GKGraphNode](gameplaykit/gkgraphnode.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Pathfinding

- [GKGraph](gameplaykit/gkgraph.md)
- [GKObstacleGraph](gameplaykit/gkobstaclegraph.md)
- [GKMeshGraph](gameplaykit/gkmeshgraph.md)
- [GKGridGraph](gameplaykit/gkgridgraph.md)
- [GKGraphNode](gameplaykit/gkgraphnode.md)
- [GKGraphNode2D](gameplaykit/gkgraphnode2d.md)
- [GKGraphNode3D](gameplaykit/gkgraphnode3d.md)
