Created
September 4, 2011 22:14
-
-
Save espeed/1193613 to your computer and use it in GitHub Desktop.
Jython FluentPipeline Example
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
# 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