We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9591c79 commit dbacf02Copy full SHA for dbacf02
src/twosat.rs
@@ -18,7 +18,7 @@ impl TwoSAT {
18
self.scc
19
.add_edge(2 * i + if f { 0 } else { 1 }, 2 * j + if g { 1 } else { 0 });
20
21
- .add_edge(2 * j + if f { 0 } else { 1 }, 2 * i + if g { 1 } else { 0 });
+ .add_edge(2 * j + if g { 0 } else { 1 }, 2 * i + if f { 1 } else { 0 });
22
}
23
pub fn satisfiable(&mut self) -> bool {
24
let id = self.scc.scc_ids().1;
0 commit comments