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

# subscript(_:)

Accesses the node associated with the given key.

## Declaration

```swift
subscript(node: ComputeNodeGraph.NodeID) -> ComputeNodeGraph.Node? { get }
```

## Parameters

- `node`: The key identifying the node to retrieve.

## Return Value

Return Value The node if it exists, or nil if no node is associated with the key.
