Initial commit
This commit is contained in:
Executable
+24
@@ -0,0 +1,24 @@
|
||||
#ifndef ARRAYGRAPH_H
|
||||
#define ARRAYGRAPH_H
|
||||
|
||||
#include "Graph.h"
|
||||
|
||||
class ArrayGraph : public Graph
|
||||
{
|
||||
public:
|
||||
ArrayGraph(unsigned vertexNumber);
|
||||
virtual ~ArrayGraph();
|
||||
bool addEdge(unsigned v, unsigned w, unsigned weight);
|
||||
bool removeEdge(unsigned v, unsigned w);
|
||||
unsigned getWeight(unsigned v, unsigned w);
|
||||
void displayGraph();
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
unsigned **graphMatrix;
|
||||
unsigned *graphArray;
|
||||
|
||||
};
|
||||
|
||||
#endif // ARRAYGRAPH_H
|
||||
Reference in New Issue
Block a user