-
Notifications
You must be signed in to change notification settings - Fork 5
/
GraphSymmetricMatrix.hpp
44 lines (29 loc) · 1.04 KB
/
GraphSymmetricMatrix.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
* @file GraphSymmetricMatrix.hpp
* Implimentation file for treating the Graph as a MTL Matrix
*/
#include <fstream>
#include "CME212/Color.hpp"
#include "CME212/Util.hpp"
#include "CME212/Point.hpp"
#include "CME212/BoundingBox.hpp"
#include "Graph.hpp"
// HW3: YOUR CODE HERE
// Define a GraphSymmetricMatrix that maps
// your Graph concept to MTL's Matrix concept. This shouldn't need to copy or
// modify Graph at all!
using GraphType = Graph<char,char>; //< DUMMY Placeholder
using NodeType = typename GraphType::node_type;
/** Remove all the nodes in graph @a g whose posiiton is within Box3D @a bb.
* @param[in,out] g The Graph to remove nodes from
* @param[in] bb The BoundingBox, all nodes inside this box will be removed
* @post For all i, 0 <= i < @a g.num_nodes(),
* not bb.contains(g.node(i).position())
*/
void remove_box(GraphType& g, const Box3D& bb) {
// HW3: YOUR CODE HERE
(void) g; (void) bb; //< Quiet compiler
return;
}
// HW3: YOUR CODE HERE
// Define NodeColor and NodePosition functors