'Appends a Node or Edge to the graph: Graph.append(Node, id="rabbit").'

def append(self, base, *args, **kwargs):

    kwargs['base'] = base
    if issubclass(base, Node):
        return self.add_node(*args, **kwargs)
    if issubclass(base, Edge):
        return self.add_edge(*args, **kwargs)
