'Convenience method: Add switch to graph.
name: switch name
opts: switch options
returns: switch name'

def addSwitch(self, name, **opts):

    if ((not opts) and self.sopts):
        opts = self.sopts
    result = self.addNode(name, isSwitch=True, **opts)
    return result
