docs: def invert_edge_predicate(edge_predicate: EdgePredicate) -> EdgePredicate:  # noqa: D202
      """Build an edge predicate that is the inverse of the given edge predicate."""
  
      def _inverse_filter(graph, u, v, k):
          return not edge_predicate(graph, u, v, k)
  
      return _inverse_filter