---
title: "remove(_:)"
framework: gameplaykit
role: symbol
role_heading: Instance Method
path: "gameplaykit/gkgraph/remove(_:)"
---

# remove(_:)

Removes the specified nodes from the graph.

## Declaration

```swift
func remove(_ nodes: [GKGraphNode])
```

## Parameters

- `nodes`: A node in the graph.

## Discussion

Discussion This method has no effect on nodes in the array that are not 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)
- [nodes](gameplaykit/gkgraph/nodes.md)
