diff --git a/graph/digraph.h b/graph/digraph.h index 92ecaf2..bdf5769 100644 --- a/graph/digraph.h +++ b/graph/digraph.h @@ -16,7 +16,7 @@ public: Digraph(std::map> digraph); // Reverse graph directions - Digraph reverse(); + auto reverse(); }; template @@ -27,7 +27,7 @@ Digraph::Digraph(std::map> digraph) { } template -Digraph Digraph::reverse() { +auto Digraph::reverse() { std::map> revMatrix; for (const auto& v : Graph::adjMatrix) {