def __init__(self, graph_name='G', obj_dict=None, graph_type='digraph', strict=False,
        suppress_disconnected=False, simplify=False, **attrs):

        if obj_dict is not None:
            self.obj_dict = obj_dict
            
        else:

            self.obj_dict = dict()
            
            self.obj_dict['attributes'] = dict(attrs)
            
            if ['graph', 'digraph'] not in graph_type:
                raise Error, 'Invalid type "%s". Accepted graph types are: graph, digraph, subgraph' % graph_type
    
    
            self.obj_dict['name'] = quote_if_necessary(graph_name)
            self.obj_dict['type'] = graph_type
            
            self.obj_dict['strict'] = strict
            self.obj_dict['suppress_disconnected'] = suppress_disconnected
            self.obj_dict['simplify'] = simplify
    
            self.obj_dict['current_child_sequence'] = 1
            self.obj_dict['nodes'] = dict()
            self.obj_dict['edges'] = dict()
            self.obj_dict['subgraphs'] = dict()

            self.set_parent_graph(self)
            

        self.create_attribute_methods(GRAPH_ATTRIBUTES)
dataset/ETHPy150Open erocarrera/pydot/pydot.py/Graph.__init__/swapped operands of `not in`