X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/55491279cdea3f01da22d1b51874e2e168ac5116..6a1e1aa6a41cc1f6220732ebe9d49b3d8c98671b:/src/s4u/s4u_Netzone.cpp diff --git a/src/s4u/s4u_Netzone.cpp b/src/s4u/s4u_Netzone.cpp index 4fab50aa6f..6109f66430 100644 --- a/src/s4u/s4u_Netzone.cpp +++ b/src/s4u/s4u_Netzone.cpp @@ -89,6 +89,15 @@ void NetZone::add_bypass_route(kernel::routing::NetPoint* src, kernel::routing:: { pimpl_->add_bypass_route(src, dst, gw_src, gw_dst, link_list, symmetrical); } + +void NetZone::extract_xbt_graph(const s_xbt_graph_t* graph, std::map* nodes, + std::map* edges) +{ + for (auto const& child : get_children()) + child->extract_xbt_graph(graph, nodes, edges); + + pimpl_->get_graph(graph, nodes, edges); +} } // namespace s4u } // namespace simgrid