#ifndef __VERTEXLIST_H__ #define __VERTEXLIST_H__ #include #include #include #include "vertex.h" #include "tovert.h" using std::vector; using std::string; using std::cin; using std::cout; using std::ostream; using std::endl; class vertexlist { public: vector vl; int addVertex(const vertex v, vector >& adjList, vector >& adjMatrix); int addVertex(const string s, vector >& adjList, vector >& adjMatrix); int addVertex(const char *s, vector >& adjList, vector >& adjMatrix); int findVertex(const vertex v) const; int findVertex(const string s) const; int findVertex(const char* s) const; unsigned int size() const; const string getVertexName(const int ndx) const; friend ostream& operator<<(ostream& strm, const vertexlist& vl); }; #endif