g.V()
.has(
'package',
'pname',
'python3' // Package name goes here
)
.repeat(outE().otherV().simplePath())
.until(
outE().count().is(0).or().loops().is(gte(2)) // The value in gte() limits the depth of the traversal
)
.path()
.by('pname')
.by('label')
.limit(20) // This limits the number of "paths" returned (where a path = [vertex, edge, vertex])
In this way, the query will return data no matter how many layers of dependencies the package has.
This PR updates the default Gremlin query by:
In this way, the query will return data no matter how many layers of dependencies the package has.
Fixed #78