Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- This file contains the declaration of the class and its memebres
- http://stackoverflow.com/questions/12733888/regarding-c-include-another-class
- Directed graphs
- */
- #include <list>
- using namespace std;
- class Graph
- {
- int v;
- std::list<int> *adj; // pointer to array who contains list of ints
- public:
- Graph(int v); // This constructor is used to intilaize the graphs vertyices and arrau
- ~Graph();
- void addEdge(int src,int dest);
- void BFS(int src);
- };
Advertisement
Add Comment
Please, Sign In to add comment