Thank you very much Marko,
1. simplePath is good, but if applied after the loop as;
g.V.out.loop(1){it.loops< 7}.simplePath.paths
it gives "null" because somehow all outputs have a repetition like
[v[1], v[2], v[1], v[2], v[1], v[2], v[1]]
and if applied before loop, while explicitly mentioning
g.V.out.out.out.simplePath.paths
then; since length of cycles is arbitrary, therefore it will neglect
two vertex cycle and will give only 3 vertex cycle.
I am a manufacturing guy and kinda layman towards programming, kindly
mention if any, what is the way to use simplePath inside a loop.
2. to use it.path inside a loop, please tell me, what criteria I
should use, say; v(1)!= v(1) or v(x)!=v(x) or how?
Actually, I need to stop a loop as soon as there is any repetition,
instead of examining it once it has pass through all 7 vertices.
Can I use like this
g.V.out.loop(1){it.path.simplePath}.paths
or in similar way
Regards
Haris