Graph representation

Hello, I need to do a graph represtation using adjacency matrix.
So I am working with two classes, Graph and Vertex.

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
 class Graph{
private:
	Vertex* vArr;
	int** iMtrx;
	int graphSize;
public:
	Graph();
	Graph(const int size);
	~Graph();
	int getGraphSize() const;
	void printGraph() const;
	void changeColor(const char c);
	void createBridge(const int i, const int j);
};

class Vertex{
private:
	int val;
	char color;
public:
	Vertex();
	~Vertex();
	void setColor(const char c);
	void setVal(const int num);
	int getVal() const;
	char getColor() const;
};


my question is if I'm in the right way or I should change it?
Topic archived. No new replies allowed.