Quaternity
graph.h
Go to the documentation of this file.
1 
7 #ifndef GRAPH_H_
8 #define GRAPH_H_
9 
10 #include <vector>
11 
12 #include "settings.h"
13 #include "state.h"
14 
19 typedef std::vector<std::vector<bool>> Graph;
20 
21 bool graph_possible(const Settings &settings, const State &state);
22 Graph graph_copy(const Graph graph);
23 Graph graph_create(const Settings &settings, const State &state);
24 
25 #endif /* GRAPH_H_ */
bool graph_possible(const Settings &settings, const State &state)
Check if it is possible to create a graph.
Definition: graph.cpp:36
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
Graph graph_copy(const Graph graph)
Create a copy of the given graph.
Definition: graph.cpp:19
Graph graph_create(const Settings &settings, const State &state)
Create a biparite graph which has a matching if the state is valid.
Definition: graph.cpp:101
This file defines the settings struct.
This file defines the structs for a card, player and a game state, plus a state initialize and copy f...
The settings which characterize a game.
Definition: settings.h:22
The complete game state.
Definition: state.h:57