---
title: "canAddNode(with:)"
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/stage/canaddnode(with:)"
---

# canAddNode(with:)

Whether a node with the given definition can be used in this stage.

## Declaration

```swift
func canAddNode(with definition: ComputeNodeGraph.NodeDefinition) -> Bool
```

## Discussion

Discussion Use as a preflight check — for example, to enable a “drop here” target in a node-graph editor, or to filter a library down to definitions valid for a particular stage.
