Contents

addNode(_:)

Adds a node to the graph.

Declaration

mutating func addNode(_ node: ComputeNodeGraph.Node) throws -> ComputeNodeGraph.NodeID

Parameters

  • node:

    The node to add.

Return Value

The key assigned to the newly added node.

Discussion