mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
fix he degree ordering routine
This commit is contained in:
@@ -49,6 +49,9 @@ class VertexDegreeLessThan {
|
||||
: graph_(graph) {}
|
||||
|
||||
bool operator()(const Vertex& lhs, const Vertex& rhs) const {
|
||||
if (graph_.Neighbors(lhs).size() == graph_.Neighbors(rhs).size()) {
|
||||
return lhs->user_state() < rhs->user_state();
|
||||
}
|
||||
return (graph_.Neighbors(lhs).size() < graph_.Neighbors(rhs).size());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user