-/* Copyright (c) 2006 Darina Dimitrova, Arnaud Legrand. All rights reserved.*/
+/* Copyright (c) 2006, 2007, 2008, 2009, 2010. The SimGrid Team.
+ * All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
#ifdef __BORLANDC__
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
#ifdef __BORLANDC__
n = xbt_dynar_length(xbt_graph_get_nodes(graph));
if (test_export_xml) {
INFO0("---- Testing XML export. Exporting to testgraph.xml ----");
n = xbt_dynar_length(xbt_graph_get_nodes(graph));
if (test_export_xml) {
INFO0("---- Testing XML export. Exporting to testgraph.xml ----");
- xbt_graph_export_graphxml(graph, "testgraph.xml", NULL, NULL, NULL,
- NULL);
+ xbt_graph_export_graphxml(graph, "testgraph.xml", NULL, NULL, NULL, NULL);
- if (route[i * n + j])
- snprintf(buf+strlen(buf), 40, "%s\t",
- node_name(route[i * n + j]));
+ if (route[i * n + j])
+ snprintf(buf + strlen(buf), 40, "%s\t",
+ node_name(route[i * n + j]));
- INFO3("sorted[%lu] = %s (%p)", i, node_name(sorted[i]), sorted[i]);
+ INFO3("sorted[%lu] = %s (%p)", i, node_name(sorted[i]), sorted[i]);
nodes = xbt_graph_get_nodes(graph);
edges = xbt_graph_get_edges(graph);
INFO2("Before Node deletion: %lu nodes, %lu edges",
nodes = xbt_graph_get_nodes(graph);
edges = xbt_graph_get_edges(graph);
INFO2("Before Node deletion: %lu nodes, %lu edges",
while (xbt_dynar_length(nodes))
xbt_graph_free_node(graph,
while (xbt_dynar_length(nodes))
xbt_graph_free_node(graph,
nodes = xbt_graph_get_nodes(graph);
edges = xbt_graph_get_edges(graph);
INFO2("Before Edge deletion: %lu nodes, %lu edges",
nodes = xbt_graph_get_nodes(graph);
edges = xbt_graph_get_edges(graph);
INFO2("Before Edge deletion: %lu nodes, %lu edges",
while (xbt_dynar_length(edges))
xbt_graph_free_edge(graph,
while (xbt_dynar_length(edges))
xbt_graph_free_edge(graph,
}
xbt_graph_free_graph(graph, free_label, NULL, NULL);
}
xbt_graph_free_graph(graph, free_label, NULL, NULL);