Contents

data(using:)

Returns the graph encoded in the specified format.

Declaration

func data(using format: ComputeNodeGraph.Format) throws -> Data

Parameters

  • format:

    The serialization format to use when encoding the graph.

Return Value

The graph encoded using the specified format.

Discussion

To reconstruct the graph, pass the data to init(data:).