Advertisement
Guest User

Untitled

a guest
Aug 24th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. >>> g.V()[0].toList()
  2. [{u'id': {u'@type': u'gremlin:int64', u'@value': 1}, u'label': u''}]
  3. >>> g.E()[0].toList()
  4. [{u'outV': {u'@type': u'gremlin:int64', u'@value': 1}, u'inVLabel': u'', u'inV': {u'@type': u'gremlin:int64', u'@value': 2}, u'outVLabel': u'', u'label': u'knows', u'id': {u'@type': u'gremlin:int32', u'@value': 7}}]
  5. >>> g.V().properties('name')[0].toList()
  6. [{u'id': {u'@type': u'gremlin:int64', u'@value': 0}, u'value': u'marko', u'label': u'name'}]
  7. >>> g.E().properties('weight')[0].toList()
  8. [{u'value': {u'@type': u'gremlin:double', u'@value': 0.5}, u'key': u'weight'}]
  9.  
  10. # after GraphSONDeserializer
  11.  
  12. >>> g.V()[0].toList()
  13. [v[1]]
  14. >>> g.E()[0].toList()
  15. [e[7][1-knows->2]]
  16. >>> g.V().properties('name')[0].toList()
  17. [vp[name->marko]]
  18. >>> g.E().properties('weight')[0].toList()
  19. [p[weight->0.5]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement