MCPcopy Create free account
hub / github.com/ERGO-Code/HiGHS / sortedEdge

Function sortedEdge

highs/mip/HighsCliqueTable.cpp:27–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25#define ADD_ZERO_WEIGHT_VARS
26
27static std::pair<HighsCliqueTable::CliqueVar, HighsCliqueTable::CliqueVar>
28sortedEdge(HighsCliqueTable::CliqueVar v1, HighsCliqueTable::CliqueVar v2) {
29 if (v1.col > v2.col) return std::make_pair(v2, v1);
30
31 return std::make_pair(v1, v2);
32}
33
34void HighsCliqueTable::unlink(HighsInt pos, HighsInt cliqueid) {
35 assert(pos >= 0);

Callers 4

findCommonCliqueIdMethod · 0.85
doAddCliqueMethod · 0.85
processNewEdgeMethod · 0.85
removeCliqueMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected