How can I set a branch to be highlighted

How can I set a branch to be highlighted when the node is opened with the arrows? or How can I set a branch to be highlighted and opened when the user clicks on the branch name?..