memgraph/customers/ravelin/fraud_detection.oc
florijan cffa5f6c96 Clients: ravelin
Summary: A proposition on where and how we could keep some basic client info.

Reviewers: buda, mislav.bradac, teon.banek, mferencevic

Reviewed By: buda

Subscribers: dtomicevic, pullbot

Differential Revision: https://phabricator.memgraph.io/D873
2017-10-09 14:34:46 +02:00

6 lines
216 B
Plaintext

WITH tointeger(rand() * 40000000) AS from_id
MATCH (from:Node {id : from_id}) WITH from
MATCH path = (from)-[*bfs..50 (e, n | degree(n) < 50)]->(to) WITH path LIMIT 10000 WHERE to.fraudulent
RETURN path, size(path)