+ std::vector<simgrid::s4u::Link*> vlinks;
+ from->routeTo(to, vlinks, nullptr);
+ for (auto const& link : vlinks)
+ xbt_dynar_push(links, &link);
+}
+/**
+ * \brief Find the latency of the route between two hosts
+ *
+ * \param from where from
+ * \param to where to
+ */
+double sg_host_route_latency(sg_host_t from, sg_host_t to)
+{
+ std::vector<simgrid::s4u::Link*> vlinks;
+ double res = 0;
+ from->routeTo(to, vlinks, &res);
+ return res;
+}
+/**
+ * \brief Find the bandwitdh of the route between two hosts
+ *
+ * \param from where from
+ * \param to where to
+ */
+double sg_host_route_bandwidth(sg_host_t from, sg_host_t to)
+{
+ double min_bandwidth = -1.0;
+
+ std::vector<simgrid::s4u::Link*> vlinks;
+ from->routeTo(to, vlinks, nullptr);
+ for (auto const& link : vlinks) {
+ double bandwidth = link->bandwidth();
+ if (bandwidth < min_bandwidth || min_bandwidth < 0.0)
+ min_bandwidth = bandwidth;
+ }
+ return min_bandwidth;
+}
+
+/** @brief Displays debugging information about a host */
+void sg_host_dump(sg_host_t host)
+{
+ XBT_INFO("Displaying host %s", host->getCname());
+ XBT_INFO(" - speed: %.0f", host->getSpeed());
+ XBT_INFO(" - available speed: %.2f", sg_host_get_available_speed(host));
+ std::map<std::string, std::string>* props = host->getProperties();
+
+ if (not props->empty()) {
+ XBT_INFO(" - properties:");
+ for (auto const& elm : *props) {
+ XBT_INFO(" %s->%s", elm.first.c_str(), elm.second.c_str());
+ }
+ }
+}
+
+/** \brief Return the list of actors attached to an host.
+ *
+ * \param host a host
+ * \param whereto a dynar in which we should push actors living on that host
+ */
+void sg_host_get_actor_list(sg_host_t host, xbt_dynar_t whereto)
+{
+ for (auto& actor : host->extension<simgrid::simix::Host>()->process_list) {
+ s4u_Actor* p = actor.ciface();
+ xbt_dynar_push(whereto, &p);