#include #include int main() { const std::vector> dag{ {1, 2}, {3}, {3}, {}, }; const Void::Algorithms::AdjacencyView view{dag}; const auto sp = Void::Algorithms::shortest_path_unweighted(view, 0, 3); const auto topo = Void::Algorithms::topological_order(view); if (!sp || !sp->found || sp->distance != 2 || !topo || topo->order.size() != 4) { return 1; } return 0; }