resetTo

open fun resetTo(nodes: Collection<NodeType>)

Clears the collection and adds the nodes.