---
title: "contains(node:)"
framework: Compute Graph
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: "computegraph/computenodegraph/contains(node:)"
---

# contains(node:)

Returns whether the graph contains a node with the given key.

## Declaration

```swift
func contains(node: ComputeNodeGraph.NodeID) -> Bool
```

## Parameters

- `node`: The key of the node to look up.

## Return Value

Return Value true if the graph contains the node; otherwise, false.
