Class Postprocessor<L extends Label>

java.lang.Object
org.variantsync.diffdetective.mining.postprocessing.Postprocessor<L>

public class Postprocessor<L extends Label> extends Object
Generic Postprocessor for mined patterns. Patterns are represented as VariationDiffs and might be filtered or transformed.
  • Field Details

  • Constructor Details

  • Method Details

    • Default

      public static <L extends Label> Postprocessor<L> Default()
      Creates the default filter to distill semantic patterns from frequent subgraphs. This processor will - filter ill-formed trees - filter trees with less than two edit classes - filter duplicates w.r.t. isomorphism - CutNonEditedSubtrees
      Returns:
      the default postprocessor.
    • postprocess

      public Postprocessor.Result<L> postprocess(List<VariationDiff<L>> frequentSubgraphs)
      Performs the postprocessing described by this Postprocessor object on the list of subgraphs. To that end, all filters and transformers will be applied.
      Parameters:
      frequentSubgraphs - A list of subgraphs to which to apply the postprocessing.
      Returns:
      The processed variation diffs as well as some metadata.