<!--
{
  "availability" : [
    "Reality Composer Pro: -",
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ComputeGraph",
  "identifier" : "/documentation/ComputeGraph/ComputeNodeGraph/Format",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Compute Graph",
      "ComputeGraph"
    ],
    "preciseIdentifier" : "s:12ComputeGraph0a4NodeB0V6FormatO"
  },
  "title" : "ComputeNodeGraph.Format"
}
-->

# ComputeNodeGraph.Format

A serialization format used to encode a compute node graph.

```
enum Format
```

## Overview

Use a value of this type with [`data(using:)`](/documentation/ComputeGraph/ComputeNodeGraph/data(using:)) to choose
how the graph is written. Both formats round-trip through
[`init(data:)`](/documentation/ComputeGraph/ComputeNodeGraph/init(data:)), which detects the format automatically
when reading.

Choose [`ComputeNodeGraph.Format.json`](/documentation/ComputeGraph/ComputeNodeGraph/Format/json) when you want a human-readable representation that
is easy to inspect, diff, or edit by hand. Choose [`ComputeNodeGraph.Format.propertyList`](/documentation/ComputeGraph/ComputeNodeGraph/Format/propertyList)
when you want a compact binary representation that is faster to read and
write and produces smaller files.

## Topics

### Enumeration Cases

[`case json`](/documentation/ComputeGraph/ComputeNodeGraph/Format/json)

A human-readable JSON representation.

[`case propertyList`](/documentation/ComputeGraph/ComputeNodeGraph/Format/propertyList)

A compact binary property list representation.

## Relationships

### Conforms To

[`CaseIterable`](/documentation/Swift/CaseIterable)

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Hashable`](/documentation/Swift/Hashable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)