Quaternity
match.h
Go to the documentation of this file.
1 
7 #ifndef MATCH_H_
8 #define MATCH_H_
9 
10 #include <vector>
11 
12 #include "graph.h"
13 
14 std::vector<int> match_find(const Graph &graph);
15 bool match_exists(const Graph &graph);
16 
17 #endif /* MATCH_H_ */
This file defines the graph type and a creation function header.
std::vector< std::vector< bool > > Graph
A bipartite graph where true booleans represent edges between a left node denoted as the row and a ri...
Definition: graph.h:19
std::vector< int > match_find(const Graph &graph)
Find a match of the given graph.
Definition: match.cpp:47
bool match_exists(const Graph &graph)
Check if there exists a matching for all cards.
Definition: match.cpp:35