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

# ComputeNodeGraph.Format

A serialization format used to encode a compute node graph.

## Declaration

```swift
enum Format
```

## Overview

Overview Use a value of this type with data(using:) to choose how the graph is written. Both formats round-trip through init(data:), which detects the format automatically when reading. Choose ComputeNodeGraph.Format.json when you want a human-readable representation that is easy to inspect, diff, or edit by hand. Choose ComputeNodeGraph.Format.propertyList when you want a compact binary representation that is faster to read and write and produces smaller files.

## Topics

### Enumeration Cases

- [ComputeNodeGraph.Format.json](computegraph/computenodegraph/format/json.md)
- [ComputeNodeGraph.Format.propertyList](computegraph/computenodegraph/format/propertylist.md)

## Relationships

### Conforms To

- [CaseIterable](swift/caseiterable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
