Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] correct graph extraction for graphicator
authorschnorr <Lucas.Schnorr@imag.fr>
Wed, 21 Mar 2012 14:10:31 +0000 (15:10 +0100)
committerschnorr <Lucas.Schnorr@imag.fr>
Wed, 21 Mar 2012 14:10:31 +0000 (15:10 +0100)
src/instr/instr_routing.c

index 12d6863..70b4c2e 100644 (file)
@@ -515,6 +515,7 @@ static void recursiveXBTGraphExtraction (xbt_graph_t graph, xbt_dict_t nodes, xb
         xbt_dynar_foreach (route->link_list, cpt, link) {
           char *link_name = ((link_CM02_t)link)->lmm_resource.generic_resource.name;
           current = new_xbt_graph_node(graph, link_name, nodes);
         xbt_dynar_foreach (route->link_list, cpt, link) {
           char *link_name = ((link_CM02_t)link)->lmm_resource.generic_resource.name;
           current = new_xbt_graph_node(graph, link_name, nodes);
+          new_xbt_graph_edge (graph, previous, current, edges);
           //previous -> current
           previous = current;
         }
           //previous -> current
           previous = current;
         }