(1)连接:
:remote connect tinkerpop.server ./conf/remote.yaml
:remote console //切换console环境到远程server,
或者 :>cmd //立即执行cmd到远端server
(2)获取顶点
g.V().range(1,10)
g.V().limit(10)
g.V().id().limit(10)
g.V().sort().take(10)
(3)获取属性:
g.V().label()
g.V(1).label()
(4)获取路径:
g.V(4096).out().out().path()
(5)根据property获取顶点信息:
g.V().has('propertyName','propertyValue').valueMap(true)