Documentation / FAQ / The graph viewer

How do I hide or show nodes, edges or sprites individually ?

You can use the ui.hide attribute on nodes, edges and sprites. The viewer tests the presence of this attribute on elements and disable the rendering of this element. The value of the attributes is not used at all. For example, to hide a node you can use :

node.addAttribute( "ui.hide" );

Then to make it visible anew :

node.removeAttribute( "ui.hide" );