def add(self, obj):
        if not isinstance(obj, Node):
            obj = Node(obj)

        IdDict.add(self, obj)
        return obj
Adds the given node or creates one with the given id
dataset/ETHPy150Open cidles/graf-python/src/graf/graphs.py/GraphNodes.add