docs: def group_citation_edges(edges: Iterable[EdgeTuple]) -> Iterable[Tuple[str, Iterable[EdgeTuple]]]:
      """Return an iterator over pairs of citation values and their corresponding edge iterators."""
      return itt.groupby(edges, key=_citation_sort_key)