title: Extracting subgraph from neo4j database
body: <p>I have a graph in neo4j database.  I want to extract a sub graph given a particular node  and a particular depth.<br>
  I tried using the traversal framework, but it only returns a set of paths.  It gives path up to a particular depth. 
   How can i construct a sub graph based on the set of paths that i get?  Is there any other way to get the required result? </p>