+void AsClusterFatTree::addLink(FatTreeNode *parent, FatTreeNode *child) {
+ using std::make_pair;
+ if (parent->children.size() == this->nodesByLevel[parent->level] ||
+ child->parents.size() == this->nodesByLevel[child->level]) {
+ /* NB : This case should never happen, if this private function is not misused,
+ * so should we keep this test, keep it only for debug, throw an exception
+ * or get rid of it ? In all cases, anytime we get in there, code should be
+ * fixed
+ */
+ xbt_die("I've been asked to create a link that could not possibly exist");
+ return;
+ }
+
+ parent->children.push_back(child);
+ child->parents.push_back(parent);
+
+ // FatTreeLink *newLink;
+
+ // newLink = new FatTreeLink(parent, child, this->lowerLevelPortsNumber[parent->level]);
+ // this->links.insert(make_pair(make_pair(parent->id, child->id), newLink));
+
+
+
+}
+