You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to do a random sampling in GO based on the source vertex ID. How to construct the nGQL statement?
Is this right:
GO 3 STEPS FROM "player100" OVER * YIELD LIMIT [abs(rand32(hash(src(edge))%5)), abs(rand32(hash(src(edge))%5)), abs(rand32(hash(src(edge))%5))]
If yes:
LIMIT [abs(rand32(hash(src(edge))%5)), --Is the src here the first vertex?
abs(rand32(hash(src(edge))%5)), -- Which vertex does the src in this line represents?
abs(rand32(hash(src(edge))%5))] -- Which vertex does the src in this line represents?
The text was updated successfully, but these errors were encountered:
Nebula Graph version: 2021.10.21-nightly
I want to do a random sampling in
GO
based on the source vertex ID. How to construct the nGQL statement?Is this right:
If yes:
LIMIT [abs(rand32(hash(src(edge))%5)), --Is the src here the first vertex?
abs(rand32(hash(src(edge))%5)), -- Which vertex does the src in this line represents?
abs(rand32(hash(src(edge))%5))] -- Which vertex does the src in this line represents?
The text was updated successfully, but these errors were encountered: