

def inverse(self):
    '\n        Return the inverse of the graph.\n        \n        @rtype:  graph\n        @return: Complement graph for the graph.\n        '
    inv = self.__class__()
    inv.add_nodes(self.nodes())
    inv.complete()
    for each in self.edges():
        if inv.has_edge(each):
            inv.del_edge(each)
    return inv

dataset/ETHPy150Open nerdvegas/rez/src/rez/vendor/pygraph/mixins/common.py common.inverse/original