20 #ifndef MINIMALGRAPHLIST_H_
21 #define MINIMALGRAPHLIST_H_
23 #include "../basic_types/Order.h"
24 #include "../analysis/BackwardResultHandler.h"
59 shared_ptr<vector<Hypergraph_sp>>
getGraphs();
101 shared_ptr<vector<graphs::Hypergraph_sp>>
graphs;
size_t addGraphs(vector< Hypergraph_sp > const &graphs)
Adds the given collection of graphs to this MinGraphList.
Definition: MinGraphList.cpp:91
basic_types::Order_sp order
Stores the Order used for minimization.
Definition: MinGraphList.h:96
size_t size() const
Returns the number of minimal graphs stored in this list.
Definition: MinGraphList.cpp:101
MinGraphList(basic_types::Order_sp order, analysis::BackwardResultHandler_sp resHandler=nullptr)
Generates a new MinGraphList using the given Order for minimization and the given BackwardResultHandl...
Definition: MinGraphList.cpp:33
unordered_set< IDType > idsInList
Caches all IDs of graphs currently stored in this list.
Definition: MinGraphList.h:111
shared_ptr< BackwardResultHandler > BackwardResultHandler_sp
Alias for a shared pointer to a BackwardResultHandler.
Definition: BackwardResultHandler.h:105
This data structure stores a collection of graphs minimal to some given order.
Definition: MinGraphList.h:36
shared_ptr< vector< graphs::Hypergraph_sp > > graphs
Stores the minimal graphs.
Definition: MinGraphList.h:101
virtual ~MinGraphList()
Destroys this MinGraphList.
Definition: MinGraphList.cpp:40
shared_ptr< vector< Hypergraph_sp > > getGraphs()
Returns the minimal graphs stores in this MinGraphList as a vector of Hypergraphs.
Definition: MinGraphList.cpp:42
analysis::BackwardResultHandler_sp resHandler
Stores the BackwardResultHandler for handling intermediate results.
Definition: MinGraphList.h:106
shared_ptr< Order > Order_sp
Alias for a shared pointer to an Order object.
Definition: Order.h:62
bool addGraph(Hypergraph_sp graph, shared_ptr< vector< Hypergraph_sp >> deletedGraphs=nullptr)
Adds the given graph to this MinGraphList, if there is no graph already in the list which is smaller ...
Definition: MinGraphList.cpp:46
bool contains(IDType graphID) const
Checks whether a graph with the given ID is stored in this list.
Definition: MinGraphList.cpp:105
unsigned int IDType
IDType is an (unsigned) integer specifically used as an Identifier of graphs, elements of graphs or a...
Definition: globals.h:53
shared_ptr< Hypergraph > Hypergraph_sp
Alias for a shared pointer to a Hypergraph.
Definition: Hypergraph.h:85