Return the number of (power) edges

def edge_number(self) -> int:
        """Return the number of (power) edges"""
        edges = set()
        for node, succs in self.edges.items():
            for succ in succs:
                edges.add(frozenset((node, succ)))
        return len(edges)