Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> g.V()[0].toList()
- [{u'id': {u'@type': u'gremlin:int64', u'@value': 1}, u'label': u''}]
- >>> g.E()[0].toList()
- [{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}}]
- >>> g.V().properties('name')[0].toList()
- [{u'id': {u'@type': u'gremlin:int64', u'@value': 0}, u'value': u'marko', u'label': u'name'}]
- >>> g.E().properties('weight')[0].toList()
- [{u'value': {u'@type': u'gremlin:double', u'@value': 0.5}, u'key': u'weight'}]
- # after GraphSONDeserializer
- >>> g.V()[0].toList()
- [v[1]]
- >>> g.E()[0].toList()
- [e[7][1-knows->2]]
- >>> g.V().properties('name')[0].toList()
- [vp[name->marko]]
- >>> g.E().properties('weight')[0].toList()
- [p[weight->0.5]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement