Add single vertex contains method and replace vertices field with adjMatrix' keys
This commit is contained in:
@@ -22,8 +22,6 @@ public:
|
||||
template<typename T>
|
||||
Digraph<T>::Digraph(std::map<T, std::set<T>> digraph) {
|
||||
Graph<T>::adjMatrix = digraph;
|
||||
auto kv = std::views::keys(Graph<T>::adjMatrix);
|
||||
Graph<T>::vertices = std::set<T>{ kv.begin(), kv.end() };
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
|
||||
Reference in New Issue
Block a user