def __init__(self, saveDict=None, dictClass=dict, writeNow=False,
                 **kwargs):
        if saveDict is not None: # USE THE SUPPLIED STORAGE
            self.d = saveDict
        elif kwargs in 'filename': # USE A SHELVE (BERKELEY DB)
            try:
                if kwargs['intKeys']: # ALLOW INT KEYS, HAVE TO USE IntShelve
                    self.d = IntShelve(writeback=False, **kwargs)
                else:
                    raise KeyError
            except KeyError:
                self.d = PicklableShelve(writeback=False, **kwargs)
            if writeNow:
                # Write immediately.
                self.edgeDictClass = IDNodeDictWriteNow
            else:
                # Use our own writeback.
                self.edgeDictClass = IDNodeDictWriteback
        else:
            self.d = dictClass()
        save_graph_db_refs(self, **kwargs)
dataset/ETHPy150Open cjlee112/pygr/pygr/mapping.py/Graph.__init__/swapped operands of `in`