---
title: ComputeNodeGraph
framework: Compute Graph
role: symbol
role_heading: Structure
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: computegraph/computenodegraph
---

# ComputeNodeGraph

## Declaration

```swift
struct ComputeNodeGraph
```

## Topics

### Classes

- [ComputeNodeGraph.Library](computegraph/computenodegraph/library.md)

### Structures

- [ComputeNodeGraph.ArrayDefinition](computegraph/computenodegraph/arraydefinition.md)
- [ComputeNodeGraph.Assembly](computegraph/computenodegraph/assembly.md)
- [ComputeNodeGraph.DataType](computegraph/computenodegraph/datatype.md)
- [ComputeNodeGraph.Edge](computegraph/computenodegraph/edge.md)
- [ComputeNodeGraph.LibraryReference](computegraph/computenodegraph/libraryreference.md)
- [ComputeNodeGraph.Metadata](computegraph/computenodegraph/metadata.md)
- [ComputeNodeGraph.Node](computegraph/computenodegraph/node.md)
- [ComputeNodeGraph.NodeDefinition](computegraph/computenodegraph/nodedefinition.md)
- [ComputeNodeGraph.Pipelines](computegraph/computenodegraph/pipelines.md)
- [ComputeNodeGraph.PipelinesDescriptor](computegraph/computenodegraph/pipelinesdescriptor.md)
- [ComputeNodeGraph.PointerDefinition](computegraph/computenodegraph/pointerdefinition.md)
- [ComputeNodeGraph.PortDefinition](computegraph/computenodegraph/portdefinition.md)
- [ComputeNodeGraph.SamplerSettings](computegraph/computenodegraph/samplersettings.md)
- [ComputeNodeGraph.Scope](computegraph/computenodegraph/scope.md)
- [ComputeNodeGraph.Stage](computegraph/computenodegraph/stage.md)
- [ComputeNodeGraph.StateDefinition](computegraph/computenodegraph/statedefinition.md)
- [ComputeNodeGraph.StructureDefinition](computegraph/computenodegraph/structuredefinition.md)
- [ComputeNodeGraph.StructureLayout](computegraph/computenodegraph/structurelayout.md)
- [ComputeNodeGraph.SwizzleChannels](computegraph/computenodegraph/swizzlechannels.md)

### Initializers

- [init()](computegraph/computenodegraph/init().md)
- [init(data:)](computegraph/computenodegraph/init(data:).md)

### Instance Properties

- [edges](computegraph/computenodegraph/edges.md)
- [nodes](computegraph/computenodegraph/nodes.md)

### Instance Methods

- [addEdge(_:)](computegraph/computenodegraph/addedge(_:).md)
- [addNode(_:)](computegraph/computenodegraph/addnode(_:).md)
- [canAddEdge(_:)](computegraph/computenodegraph/canaddedge(_:).md)
- [canAddNode(_:)](computegraph/computenodegraph/canaddnode(_:).md)
- [contains(edge:)](computegraph/computenodegraph/contains(edge:).md)
- [contains(node:)](computegraph/computenodegraph/contains(node:).md)
- [data(using:)](computegraph/computenodegraph/data(using:).md)
- [removeEdge(_:)](computegraph/computenodegraph/removeedge(_:).md)
- [removeNode(_:)](computegraph/computenodegraph/removenode(_:).md)
- [replaceAll(nodes:edges:)](computegraph/computenodegraph/replaceall(nodes:edges:).md)
- [updateNode(_:forKey:)](computegraph/computenodegraph/updatenode(_:forkey:).md)

### Subscripts

- [subscript(_:)](computegraph/computenodegraph/subscript(_:).md)

### Type Aliases

- [ComputeNodeGraph.NodeID](computegraph/computenodegraph/nodeid.md)

### Enumerations

- [ComputeNodeGraph.Format](computegraph/computenodegraph/format.md)
- [ComputeNodeGraph.Port](computegraph/computenodegraph/port.md)
- [ComputeNodeGraph.StateType](computegraph/computenodegraph/statetype.md)
- [ComputeNodeGraph.Topology](computegraph/computenodegraph/topology.md)
- [ComputeNodeGraph.ValueType](computegraph/computenodegraph/valuetype.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
