Formatting fixed based on Keir's comments and extended the tests

This commit is contained in:
Sameer Agarwal
2012-05-06 16:08:22 -07:00
parent 4f21c68409
commit 3faa08b7f7
2 changed files with 14 additions and 7 deletions
+2 -2
View File
@@ -50,9 +50,9 @@ class VertexDegreeLessThan {
bool operator()(const Vertex& lhs, const Vertex& rhs) const {
if (graph_.Neighbors(lhs).size() == graph_.Neighbors(rhs).size()) {
return (lhs < rhs);
return lhs < rhs;
}
return (graph_.Neighbors(lhs).size() < graph_.Neighbors(rhs).size());
return graph_.Neighbors(lhs).size() < graph_.Neighbors(rhs).size();
}
private: