Module logicng

Class ConstraintGraphGenerator


  • public final class ConstraintGraphGenerator
    extends Object
    A graph generator which generates a constraint graph for a given list of formulas.
    Since:
    2.0.0
    Version:
    2.4.0
    • Method Detail

      • generateFromCnf

        @Deprecated
        public static Graph<Variable> generateFromCnf​(Formula formula)
        Deprecated.
        the constraint graph generation is not CNF specific. Use general method generateFromFormulas(Collection) instead.
        Constructs the constraint graph.
        Parameters:
        formula - the formula in extended CNF
        Returns:
        the constraint graph for the given formula
      • generateFromCnf

        @Deprecated
        public static Graph<Variable> generateFromCnf​(Collection<Formula> formulas)
        Deprecated.
        the constraint graph generation is not CNF specific. Use general method generateFromFormulas(Collection) instead.
        Constructs the constraint graph.
        Parameters:
        formulas - the formulas in extended CNF as set of CNFs
        Returns:
        the constraint graph for the given formula
      • generateFromFormulas

        public static Graph<Variable> generateFromFormulas​(Collection<Formula> formulas)
        Constructs the constraint graph.
        Parameters:
        formulas - the formulas
        Returns:
        the constraint graph for the given formula