- xbt_dynar_t hosts = sg_hosts_as_dynar();
- std::printf("Host count: %zu, link number: %d\n", sg_host_count(), sg_link_count());
+ std::vector<sg_host_t> hosts = simgrid::s4u::Engine::get_instance()->get_all_hosts();
+ std::printf("Host count: %zu, link number: %d\n", hosts.size(), sg_link_count());