Skip to content
Snippets Groups Projects
Commit a684305f authored by David Rosca's avatar David Rosca
Browse files

Graphs: Set ADJACENCY_LIST as default representation

parent f4a363db
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,7 @@ class IDirectedGraph; ...@@ -18,7 +18,7 @@ class IDirectedGraph;
class DirectedGraph : public std::acceptor<DirectedGraph, VisitableGraphBase, std::acceptor<DirectedGraph, alib::VisitableObjectBase, GraphBase>> class DirectedGraph : public std::acceptor<DirectedGraph, VisitableGraphBase, std::acceptor<DirectedGraph, alib::VisitableObjectBase, GraphBase>>
{ {
public: public:
explicit DirectedGraph(REPRESENTATION representation); explicit DirectedGraph(REPRESENTATION representation = REPRESENTATION::ADJACENCY_LIST);
~DirectedGraph() noexcept; ~DirectedGraph() noexcept;
   
DirectedGraph(const DirectedGraph &other); DirectedGraph(const DirectedGraph &other);
......
...@@ -18,7 +18,7 @@ class IUndirectedGraph; ...@@ -18,7 +18,7 @@ class IUndirectedGraph;
class UndirectedGraph : public std::acceptor<UndirectedGraph, VisitableGraphBase, std::acceptor<UndirectedGraph, alib::VisitableObjectBase, GraphBase>> class UndirectedGraph : public std::acceptor<UndirectedGraph, VisitableGraphBase, std::acceptor<UndirectedGraph, alib::VisitableObjectBase, GraphBase>>
{ {
public: public:
explicit UndirectedGraph(REPRESENTATION representation); explicit UndirectedGraph(REPRESENTATION representation = REPRESENTATION::ADJACENCY_LIST);
~UndirectedGraph() noexcept; ~UndirectedGraph() noexcept;
   
UndirectedGraph(const UndirectedGraph &other); UndirectedGraph(const UndirectedGraph &other);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment