title: Traversing Graph
body: <p>I would like to traverse through a Graph and create a duplicate copy of it in my repository. As of now I have used very much boring approach through loops and many counter variable but I'm not happy with that.</p>
  
  <p>The graph looks like following :
  ![enter image description here][1]</p>
  
  <pre><code>    A
   B      C
  D  E   F  G
  </code></pre>
  
  <p>My purpose is to traverse through any method (BFS or any other) but ultimate goal to create a duplicate copy of it.</p>
  
  <p>Thanks in advance.</p>