Skip to content

Commit

Permalink
Fix bug accidentally rendering normal edges as complemented
Browse files Browse the repository at this point in the history
`inherit` did not behave the way I thought it would :(
  • Loading branch information
mattxwang committed Jul 10, 2023
1 parent c225ae8 commit c231a2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Sdd/SddGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function genSddNodesAndEdges(sdd: SddWrapper): Data {
from: `and-${i}-${j}`,
to: `or-${index}`,
dashes: isSub ? [5, 5] : false,
color: compl ? 'red' : 'inherit',
color: compl ? 'red' : 'black',
label: isSub ? 'sub' : 'prime',
},
]
Expand All @@ -70,6 +70,7 @@ function genSddNodesAndEdges(sdd: SddWrapper): Data {
return addEdgeIfExists(prime, false).concat(addEdgeIfExists(sub, true))
})
})

return {
nodes: ors.concat(ands),
edges: andEdges.concat(orEdges),
Expand Down

0 comments on commit c231a2c

Please sign in to comment.