Add Extremes

Path → Add Extremes adds missing nodes on extrema. The custom parameter rule is the filter name AddExtremes without any arguments.