diff --git a/graph/cycle_check_directed_graph.cpp b/graph/cycle_check_directed_graph.cpp index 4a619850d..0f7b84cd3 100644 --- a/graph/cycle_check_directed_graph.cpp +++ b/graph/cycle_check_directed_graph.cpp @@ -292,7 +292,7 @@ class CycleCheck { */ int main() { // Instantiate the graph. - Graph g(7, {{0, 1}, {1, 2}, {2, 0}, {2, 5}, {3, 5}}); + Graph g(7, std::vector{{0, 1}, {1, 2}, {2, 0}, {2, 5}, {3, 5}}); // Check for cycle using BFS method. std::cout << CycleCheck::isCyclicBFS(g) << '\n';