What you're missing is (1) initializing Gremlin, and (2) collecting
results. To initialize Gremlin, your code needs to execute the following
once (and preferably only once):
import com.tinkerpop.gremlin.groovy.Gremlin
Gremlin.load()
Once you've done that, you can run your query. Right now
I am trying to find path traversals and explore them by increasing weight,
I was able to do this in gremlin and was trying to replicate the code in
groovy (using groovyc to compile a groovy file and integrate with my other
java code)... Can someone point me to documentation or how to execute