g
.V(userId)
.Out("follows")
.As(ConnectingFollowerLabel)
.Local<Vertex>(__
.Out("follows")
.HasLabel("User")
.Not(__.Both("blocks").HasId(userId))
.Not(__.In("reported").HasId(userId))
.Not(__.In("follows").HasId(userId))
.Not(__.HasId(userId))
.Limit<Vertex>(maxProfileSuggestionsPerCommonUser))
.Dedup();g
.V(userId)
.Out("follows")
.As(ConnectingFollowerLabel)
.Local<Vertex>(__
.Out("follows")
.HasLabel("User")
.Not(__.Both("blocks").HasId(userId))
.Not(__.In("reported").HasId(userId))
.Not(__.In("follows").HasId(userId))
.Not(__.HasId(userId))
.Limit<Vertex>(maxProfileSuggestionsPerCommonUser))
.Limit<Vertex>(maxProfileSuggestions)
.Dedup()
.Range<Vertex>(Scope.Global, offset, offsetLimit);Join the Discord to ask follow-up questions and connect with the community
Apache TinkerPop is an open source graph computing framework and the home of the Gremlin graph query language.
1,383 Members
Join