Skip to content

Instantly share code, notes, and snippets.

@espeed
Created September 4, 2011 22:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save espeed/1193613 to your computer and use it in GitHub Desktop.
Save espeed/1193613 to your computer and use it in GitHub Desktop.
Jython FluentPipeline Example
# Jython FluentPipeline Example
# by James Thornton, http://jamesthornton.com
from com.tinkerpop.pipes.util import FluentPipeline
from com.tinkerpop.blueprints.pgm.impls.tg import TinkerGraphFactory
g = TinkerGraphFactory.createTinkerGraph()
pipe = FluentPipeline()
results = pipe.start(g.getVertex(1)).out("knows").property("name")
for name in results:
print name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment