Last active
July 20, 2018 08:25
-
-
Save benoitguigal/6899ba58210bbd3e7b63e9d3ebb305c9 to your computer and use it in GitHub Desktop.
Gremlin Python Language Variant
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> from gremlin_python import statics | |
>>> from gremlin_python.structure.graph import Graph | |
>>> from gremlin_python.process.graph_traversal import __ | |
>>> from gremlin_python.process.strategies import * | |
>>> from gremlin_python.driver.driver_remote_connection import DriverRemoteConnection | |
>>> graph = Graph() | |
>>> g = graph.traversal().withRemote(DriverRemoteConnection('ws://localhost:8182/gremlin','g')) | |
>>> g.V().has('name', 'saturn').next() | |
v[4240] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment