Graph Theory37 sections · 1633 units
Open in Course

Building the Implication Graph

(Converting constraints)

For each customer's clause "a OR b", add two edges to the implication graph: NOT a → b and NOT b → a. This is the standard conversion. Example: customer wants "+1+1 2-2" (topping 11 on, topping 22 off). The clause is x1x_1 OR NOT x2x_2.

Add edges: NOT x1x_1 → NOT x2x_2 and x2x_2x1x_1. If topping 11 is off, topping 22 must be off. If topping 22 is on, topping 11 must be on. Build the full graph from all m customer constraints.