execute

open fun execute()

If no target node is given DO NOTHING. The junction can not be removed.


open fun execute(targetNode: Node<Double>)

Execute the action on the given target node. NOTE, it is NOT guaranteed that this method checks if the target node is in the actual neighborhood of the node.

Parameters

targetNode

the node where the action will be execute