Skip to content

Commit

Permalink
Update trans_solver.cc
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
pmoulon committed Sep 26, 2014
1 parent 90a1d87 commit 3279965
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sfminit/src/trans_solver.cc
Expand Up @@ -108,14 +108,14 @@ reindex_problem(int* edges, int num_edges, std::vector<int> &reindex_lookup) {

reindex_lookup.clear();

// get the unique set of notes
// get the unique set of nodes
std::set<int> nodes;
for (int i=0; i<2*num_edges; ++i)
nodes.insert(edges[i]);

std::map<int, int> reindexing_key;

// iterator through them and assign a new name to each vertex
// iterator through them and assign a new Id to each vertex
std::set<int>::const_iterator it;
int n=0;
for (it = nodes.begin(); it != nodes.end(); ++it) {
Expand All @@ -128,4 +128,4 @@ reindex_problem(int* edges, int num_edges, std::vector<int> &reindex_lookup) {
for (int i=0; i<2*num_edges; ++i)
edges[i] = reindexing_key[edges[i]];

}
}

0 comments on commit 3279965

Please sign in to comment.