- java.lang.Object
-
- org.logicng.graphs.generators.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 Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Graph<Variable>generateFromCnf(Collection<Formula> formulas)Deprecated.the constraint graph generation is not CNF specific.static Graph<Variable>generateFromCnf(Formula formula)Deprecated.the constraint graph generation is not CNF specific.static Graph<Variable>generateFromFormulas(Collection<Formula> formulas)Constructs the constraint graph.
-
-
-
Method Detail
-
generateFromCnf
@Deprecated public static Graph<Variable> generateFromCnf(Formula formula)
Deprecated.the constraint graph generation is not CNF specific. Use general methodgenerateFromFormulas(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 methodgenerateFromFormulas(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
-
-