| LabGraph::LabGraph |
( |
int |
height, |
|
|
int |
width |
|
) |
| |
Constructor.
- Parameters
-
| height | Height of the graph. |
| width | Width of the graph. |
| void LabGraph::buildLabWithPrim |
( |
| ) |
|
Creates a Labyrinth on the Graph with prims algorithm.
| void LabGraph::buildLabWithRecBac |
( |
| ) |
|
Creates a Labyrinth on the Graph with recursive backtracing algorithm.
| void LabGraph::easyTest |
( |
| ) |
|
Once a simple test method this became the starter:).
| void LabGraph::graphToPic |
( |
string |
format | ) |
|
Creates a picture of the current graph using graphviz.
- Parameters
-
| format | Outputformat of the picture e.g. "jpg" "png"... |
| void LabGraph::initGraph |
( |
| ) |
|
Creates a square with heigt x width nodes connected by edges.
| void LabGraph::makeVideo |
( |
| ) |
|
Makes a video of the graph creation.
| void LabGraph::setDimensions |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
Can only be used on an uninizialized graph. Sets the height and width and initializes the graph. This is used to diplay the labyrinth created by recursive division.
| void LabGraph::setLab |
( |
bool ** |
boolArray | ) |
|
Sets the color of all edges to black or white. This is used to diplay the labyrinth created by recursive division.
| std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const LabGraph & |
graph |
|
) |
| |
|
friend |
Outputs the graph in DOT-form so it can be interpreted by graphviz.
- Returns
The documentation for this class was generated from the following files: