Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save alsargent/b39e1598c139c3172e046f07c56d2a6d to your computer and use it in GitHub Desktop.
Save alsargent/b39e1598c139c3172e046f07c56d2a6d to your computer and use it in GitHub Desktop.
/*
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