Instance Property

nodes

The list of nodes in the graph.

Declaration

@property(nonatomic, readonly) NSArray<GKGraphNode *> *nodes;

Discussion

This array can contain nodes that are not connected to other nodes in the graph.

See Also

Working with Nodes in a Graph

- addNodes:

Adds the specified nodes to the graph.

- connectNodeToLowestCostNode:bidirectional:

Adds a node to the graph, connecting it to the node already in the graph for which the connection has the lowest cost.

- removeNodes:

Removes the specified nodes from the graph.