I want to implement DFS, BFS using vector of vectors. Can someone help me with that? I have never code using vector, so it is a bit tough for me i guess. asked 05 Dec '14, 14:06

Do not guess, if you never used vector before, do some tests, read some examples... answered 05 Dec '14, 14:54
i have read it already. i am not able to write code for Dfs and bfs using it.
(05 Dec '14, 14:59)
If you can do it with arrays you can do it with vectors. If you can't do it with arrays you need to learn dfs/bfs and solve some questions.
(05 Dec '14, 15:31)
ya.. i think you are right. but thanks anyways...
(05 Dec '14, 16:49)
1
Try to solve this problem  http://www.codechef.com/problems/PETERSEN using BFS... We can help you if you got stucked ;) Try to solve this problem  http://www.codechef.com/problems/FIRESC (DFS) also ;)
(05 Dec '14, 17:01)

Refer Geeks for Geeks for graph+stl solutions. Here is the link for dfs using vectors http://www.geeksforgeeks.org/graphimplementationusingstlforcompetitiveprogrammingset1dfsofunweightedandundirected/ answered 17 Aug '17, 20:57

Refer to this link. Probably the best if you are a beginner in graphs c++. answered 23 Oct '18, 22:48
