Fix GCC version runtime changes, bug651.

This commit is contained in:
Wilson Snyder
2013-05-23 20:19:51 -04:00
parent 3bd3d01968
commit 175d59ecba
9 changed files with 15 additions and 13 deletions
+1 -1
View File
@@ -461,7 +461,7 @@ void GraphAcyc::place() {
}
// Sort by weight, then by vertex (so that we completely process one vertex, when possible)
sort(edges.begin(), edges.end(), GraphAcycEdgeCmp());
stable_sort(edges.begin(), edges.end(), GraphAcycEdgeCmp());
// Process each edge in weighted order
m_placeStep = 10;