diff --git a/cpp/Makefile b/cpp/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..a6877b0b82f1e83b68e57b14c5c28c0c8203a641 --- /dev/null +++ b/cpp/Makefile @@ -0,0 +1,11 @@ + +INCLUDES += -I. + +CXXFLAGS += -std=c++14 -O3 -Wall -Wextra -Wfatal-errors -Wno-deprecated-declarations $(INCLUDES) + +switchchain: + +# target : dep1 dep2 dep3 +# $@ = target +# $< = dep1 +# $^ = dep1 dep2 dep3 diff --git a/cpp/graph.hpp b/cpp/graph.hpp index 43376b42fe91d6530be954d9d53d9b491801ca6b..f171ce2ce002b72a8c98f59079433d0496429a7a 100644 --- a/cpp/graph.hpp +++ b/cpp/graph.hpp @@ -151,7 +151,6 @@ class Graph { // B) e1.u - e2.v and e2.u - e1.v // Note that to do (B) instead of (A), simply swap e2.u <-> e2.v // Now we can just consider switch type (A) - switchType = false; if (switchType) { std::swap(se2.e.u, se2.e.v); std::swap(se2.u2vindex, se2.v2uindex);