From a684305fd904f48b54af2b655351fbd8f6234264 Mon Sep 17 00:00:00 2001 From: David Rosca <roscadav@fit.cvut.cz> Date: Sat, 7 Mar 2015 11:57:27 +0100 Subject: [PATCH] Graphs: Set ADJACENCY_LIST as default representation --- alib2data/src/graph/directed/DirectedGraph.h | 2 +- alib2data/src/graph/undirected/UndirectedGraph.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/alib2data/src/graph/directed/DirectedGraph.h b/alib2data/src/graph/directed/DirectedGraph.h index c52be4f255..3422c1135e 100644 --- a/alib2data/src/graph/directed/DirectedGraph.h +++ b/alib2data/src/graph/directed/DirectedGraph.h @@ -18,7 +18,7 @@ class IDirectedGraph; class DirectedGraph : public std::acceptor<DirectedGraph, VisitableGraphBase, std::acceptor<DirectedGraph, alib::VisitableObjectBase, GraphBase>> { public: - explicit DirectedGraph(REPRESENTATION representation); + explicit DirectedGraph(REPRESENTATION representation = REPRESENTATION::ADJACENCY_LIST); ~DirectedGraph() noexcept; DirectedGraph(const DirectedGraph &other); diff --git a/alib2data/src/graph/undirected/UndirectedGraph.h b/alib2data/src/graph/undirected/UndirectedGraph.h index 6c8bf430bd..1eaf3433e3 100644 --- a/alib2data/src/graph/undirected/UndirectedGraph.h +++ b/alib2data/src/graph/undirected/UndirectedGraph.h @@ -18,7 +18,7 @@ class IUndirectedGraph; class UndirectedGraph : public std::acceptor<UndirectedGraph, VisitableGraphBase, std::acceptor<UndirectedGraph, alib::VisitableObjectBase, GraphBase>> { public: - explicit UndirectedGraph(REPRESENTATION representation); + explicit UndirectedGraph(REPRESENTATION representation = REPRESENTATION::ADJACENCY_LIST); ~UndirectedGraph() noexcept; UndirectedGraph(const UndirectedGraph &other); -- GitLab