Instance Property


The list of nodes in the graph.


var nodes: [GKGraphNode]? { get }


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

See Also

Working with Nodes in a Graph

func add([GKGraphNode])

Adds the specified nodes to the graph.

func connectToLowestCostNode(node: GKGraphNode, bidirectional: Bool)

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

func remove([GKGraphNode])

Removes the specified nodes from the graph.