Select the node according to the primary key

Search node function:
Set the search node to the selected state based on the node name entered by the user.

Just call Diagram.findNodeForKey ?

There are other Diagram methods for finding, too.