API Reference
nuke.
invertSelection
Selects all unselected nodes, and deselects all selected ones.
None.