30 #ifndef INCLUDE_CONTRACTION_PGR_CONTRACT_HPP_
31 #define INCLUDE_CONTRACTION_PGR_CONTRACT_HPP_
44 namespace contraction {
56 std::vector<int64_t> contraction_order,
59 std::deque<int64_t> contract_order;
61 contract_order.push_back(-1);
62 contract_order.insert(
64 contraction_order.begin(), contraction_order.end());
65 for (int64_t i = 0; i < max_cycles; ++i) {
66 int64_t front = contract_order.front();
67 contract_order.pop_front();
68 contract_order.push_back(front);
69 auto kind = contract_order.front();
71 one_cycle(graph, kind, forbidden_vertices);
72 contract_order.pop_front();
73 contract_order.push_back(front);
74 kind = contract_order.front();
123 linearContractor(graph, forbidden_vertices);
134 #endif // INCLUDE_CONTRACTION_PGR_CONTRACT_HPP_