Last active
November 9, 2022 18:17
-
-
Save alsargent/b39e1598c139c3172e046f07c56d2a6d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Find all suspicious long loops of transactions | |
Show the graph and json results | |
Scroll to bottom of graph results and click "GraphViewer" to see results in Graph Viewer */ | |
WITH transaction, account | |
FOR suspicous_account IN account | |
FOR acct, tx, path IN 5..10 OUTBOUND suspicous_account._id GRAPH 'fraud-detection' PRUNE tx._to == suspicous_account._id | |
FILTER tx._to == suspicous_account._id | |
RETURN path |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment