docs: def createNode(self, cls, name, *args, **kw):
          """
          Add a node of type cls to the graph if it does not already exist
          by the given name
          """
          m = self.findNode(name)
          if m is None:
              m = cls(name, *args, **kw)
              self.addNode(m)
          return m