Initializes a graph with the specified list of nodes.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
An array of graph node objects—instances of
GKGraphor of one of its subclasses containing geometry information.
A new graph object.
The nodes in the array need not already be connected—you can connect nodes after adding them to the graph using the
connect method on the graph itself or the addConnection:bidirectional: method on individual nodes. Using the
find method requires connections between nodes.