Instance Method


Adds the specified nodes to the graph.


func add(_ nodes: [GKGraphNode])



An array of graph node objects—instances of GKGraphNode or of one of its subclasses that adds geometry information.


Calling this method does not connect the newly added nodes to others in the graph.

See Also

Working with Nodes in a 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.

var nodes: [GKGraphNode]?

The list of nodes in the graph.