Skip to content

Commit acf9178

Browse files
msoosclaude
andcommitted
ddnnf2dot: drop the space before the propagated-literals bracket
Labels now read "1[2,3]" instead of "1 [2,3]". Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 48fcacc commit acf9178

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ddnnf2dot.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ THE SOFTWARE.
2727
// AND node ('a') -> yellow box "∧"
2828
// FALSE ('f') -> "⊥"
2929
// arc -> edge. An arc carrying literals is labelled in bold blue as
30-
// "1 [2,-3]" -- the decided literal, then the propagated ones
30+
// "1[2,-3]" -- the decided literal, then the propagated ones
3131
// in brackets (just "1" when nothing propagated). An AND node's
3232
// decomposition arcs carry no literals, so we instead label
3333
// each with the set of variables in that child's component --
@@ -178,7 +178,7 @@ int main(int argc, char** argv) {
178178
auto blue_lits = [](std::ostream& os, const std::vector<int>& lits) {
179179
os << " [label=<<FONT COLOR=\"#1565c0\" POINT-SIZE=\"9\"><B>" << lits[0];
180180
if (lits.size() > 1) {
181-
os << " [";
181+
os << "[";
182182
for (size_t k = 1; k < lits.size(); k++) os << (k > 1 ? "," : "") << lits[k];
183183
os << "]";
184184
}

0 commit comments

Comments
 (0)