We're already effectively checking sanity for that in PBQP::Graph::addEdge.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204844
91177308-0d34-0410-b5e6-
96231b3b80d8
}
EdgeEntry &NE = getEdge(EId);
- NodeEntry &N1 = getNode(NE.getN1Id());
- NodeEntry &N2 = getNode(NE.getN2Id());
-
- // Sanity check on matrix dimensions:
- assert((N1.Costs->getLength() == NE.Costs->getRows()) &&
- (N2.Costs->getLength() == NE.Costs->getCols()) &&
- "Edge cost dimensions do not match node costs dimensions.");
// Add the edge to the adjacency sets of its nodes.
NE.connect(*this, EId);