Advertisement
rinab333

CSCI 340 assignment9.h

Jul 16th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. #ifndef ASSIGNMENT9_H
  2. #define ASSIGNMENT9_H
  3. #include <vector>
  4. #include <list>
  5.  
  6. class graph {
  7.     private:
  8.         int size;
  9.         std::vector< std::list<int> > adj_list;
  10.         std::vector< char > labels;
  11.         void depth_first( int ) const;
  12.     public:
  13.         graph( const char* filename );
  14.         ~graph();
  15.         int get_size() const;
  16.         void traverse( ) const;
  17.         void print ( ) const;
  18. };
  19.  
  20. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement