I was able to get the path of a graph with the command below,
g.V('v6').repeat(out().simplePath()).until(hasId('v8')).path().limit(1)
gives,
==>[v[v6], v[v3], v[v1], v[v4], v[v8]]
I would like to print with the edges associated with the path. Tried few ways could not get it to print.