- // std::map<std::pair<int,int>,FatTreeLink*>::iterator iter;
- // file << "graph AsClusterFatTree {\n";
- // for (iter = this->links.begin() ; iter != this->links.end() ; iter++ ) {
- // for (int j = 0 ; j < iter->second->ports ; j++) {
- // file << iter->second->source->id
- // << " -- "
- // << iter->second->destination->id
- // << ";\n";
- // }
- //}
+ std::map<std::pair<int,int>,FatTreeLink*>::const_iterator iter;
+ file << "graph AsClusterFatTree {\n";
+ for (iter = this->links.begin() ; iter != this->links.end() ; iter++ ) {
+ for (unsigned int j = 0 ; j < iter->second->ports ; j++) {
+ file << iter->second->source->id
+ << " -- "
+ << iter->second->destination->id
+ << ";\n";
+ }
+ }