---
title: nodes
framework: gameplaykit
role: symbol
role_heading: Instance Property
path: gameplaykit/gkgraph/nodes
---

# nodes

The list of nodes in the graph.

## Declaration

```swift
var nodes: [GKGraphNode]? { get }
```

## Discussion

Discussion This array can contain nodes that are not connected to other nodes in the graph.

## See Also

### Working with Nodes in a Graph

- [add(_:)](gameplaykit/gkgraph/add(_:).md)
- [connectToLowestCostNode(node:bidirectional:)](gameplaykit/gkgraph/connecttolowestcostnode(node:bidirectional:).md)
- [remove(_:)](gameplaykit/gkgraph/remove(_:).md)
