Returns a Boolean value indicating whether the specified nodes are protected from disconnection due to the addition of obstacles.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
A node in the graph.
Another node in the graph to which the node
startis directly connected.
true if the connection between the specified nodes has been locked with the
lock method; otherwise,
By default, adding obstacles with the
add method disconnects pairs of nodes if the direct path between them intersects an obstacle. This behavior ensures that using the findPathBetweenNodes:toNode: method does not result in a path through the graph that crosses obstacles. With certain nodes, this behavior might not be desirable—use the
lock method to protect a connection between nodes from being automatically destroyed and the
unlock method to remove such protection.