Skip to content

Commit 10b7439

Browse files
authored
Fix edge weight bug (#309)
1 parent 8663681 commit 10b7439

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Team20/Code20/source/DispatcherGraph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void DispatcherGraph::addDispatcher(ClauseDispatcher *dispatcher) {
2323
}
2424
for (const auto &associatedDispatcher :
2525
symbolsToClauseDispatchersMap[symbol]) {
26-
int weight = countCommonSymbols(dispatcher, associatedDispatcher) * 2;
26+
int weight = countCommonSymbols(dispatcher, associatedDispatcher) * -2;
2727
adjacencyList.at(dispatcher)
2828
.insert(Edge{
2929
associatedDispatcher,

0 commit comments

Comments
 (0)