gourav1 -12 Posting Whiz in Training

will anyone please give me the basic structure to traverse the graph? i knoe the algo but i want to knoe the way that how to proceed? some idea about that. thanks