You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by GitBox <gi...@apache.org> on 2019/02/25 23:42:10 UTC

[GitHub] mdjnewman opened a new pull request #1072: Fix error in 'The First Five Minutes' section

mdjnewman opened a new pull request #1072: Fix error in 'The First Five Minutes' section
URL: https://github.com/apache/tinkerpop/pull/1072
 
 
   [The First Five Minutes](https://tinkerpop.apache.org/docs/current/tutorials/getting-started/#_the_first_five_minutes) section contains a small error.
   
   `inE().inV()` is not equivalent to `in()`, `inE().outV()` is.
   
   Example showing this:
   
   ```
   gremlin> graph = TinkerFactory.createModern()
   ==>tinkergraph[vertices:6 edges:6]
   
   gremlin> g = graph.traversal()
   ==>graphtraversalsource[tinkergraph[vertices:6 edges:6], standard]
   
   gremlin> g.V(3).inE().inV()
   ==>v[3]
   ==>v[3]
   ==>v[3]
   
   gremlin> g.V(3).inE().outV()
   ==>v[1]
   ==>v[4]
   ==>v[6]
   
   gremlin> g.V(3).in()
   ==>v[1]
   ==>v[4]
   ==>v[6]
   ```
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services