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