title: OrientDB Traverse Functionality
body: <p>I want to select all vertices that are connected to another vertex. I am currently using the <code>traverse</code> function in OrientDB. Consider the following example:</p>
  
  <pre><code>&gt; create class professor extends V
  &gt; create class course extends V
  &gt; insert into professor set name='Smith'
  Inserted record 'professor#14:0{name:Smith} v1'
  
  &gt; insert into course set name='Calculus'
  Inserted record 'course#15:0{name:Calculus} v1'
  
  &gt; create class teaches extends E
  &gt; create edge teaches from #14:0 to #15:0
  Created edge '[teaches#16:0{out:#14:0,in:#15:0} v3]'
  </code></pre>
  
  <p>Now when I try to traverse to find the course(s) that professor Smith teaches I use the following command:</p>
  
  <pre><code>&gt; traverse out_teaches from #15:0
  ----+-----+---------+-----+-----------+-----+-----
  #   |@RID |@CLASS   |name |out_teaches|out  |in   
  ----+-----+---------+-----+-----------+-----+-----
  0   |#14:0|professor|Smith|[size=1]   |null |null 
  1   |#16:0|teaches  |null |null       |#14:0|#15:0
  ----+-----+---------+-----+-----------+-----+-----
  </code></pre>
  
  <p>Why does this return to me the edge and not the vertex (course) that I am looking for? What is the appropriate command to return to me the vertex? I want the record for 'Calculus' to be returned.</p>