#ifndef SCC_H_ #define SCC_H_ #include "graph.h" #include namespace graph { template class SCC : public Graph { public: SCC(std::map> scc); private: T root; }; template SCC::SCC(std::map> scc) { Graph::adjMatrix = scc; auto kv = std::views::keys(Graph::adjMatrix); Graph::vertices = std::set{ kv.begin(), kv.end() }; root = scc.begin()->first; } }; // namespace graph #endif