Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Cosmetics: declare graph edges with the "right" direction.
[simgrid.git] / src / kernel / routing / StarZone.cpp
index 16b7262..aab5ccd 100644 (file)
@@ -75,10 +75,10 @@ void StarZone::get_graph(const s_xbt_graph_t* graph, std::map<std::string, xbt_n
     previous = star_node;
     for (auto const* link : routes_[src->id()].links_down) {
       xbt_node_t current = new_xbt_graph_node(graph, link->get_cname(), nodes);
-      new_xbt_graph_edge(graph, current, previous, edges);
+      new_xbt_graph_edge(graph, previous, current, edges);
       previous = current;
     }
-    new_xbt_graph_edge(graph, src_node, previous, edges);
+    new_xbt_graph_edge(graph, previous, src_node, edges);
   }
 }