This example demonstrates the SoPathSwitch node behavior. In this example, a same sub-scene graph is used several times. When user pick a sphere, PathSwitch node is updated so that the Material is changed for the current traversal path.
SoSwitch, SoMultiSwitch, SoInteractiveSwitch, SoPathSwitch, SoMultiPathSwitch