From cffa5f6c960c0e24fdc23f0aece971f500b8e84a Mon Sep 17 00:00:00 2001 From: florijan Date: Mon, 9 Oct 2017 14:34:31 +0200 Subject: [PATCH] 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 --- customers/ravelin/fraud_detection.oc | 5 ++++ customers/ravelin/snapshot_gen_config.json | 31 ++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 customers/ravelin/fraud_detection.oc create mode 100644 customers/ravelin/snapshot_gen_config.json diff --git a/customers/ravelin/fraud_detection.oc b/customers/ravelin/fraud_detection.oc new file mode 100644 index 000000000..6737774f8 --- /dev/null +++ b/customers/ravelin/fraud_detection.oc @@ -0,0 +1,5 @@ +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) + diff --git a/customers/ravelin/snapshot_gen_config.json b/customers/ravelin/snapshot_gen_config.json new file mode 100644 index 000000000..e67a535bf --- /dev/null +++ b/customers/ravelin/snapshot_gen_config.json @@ -0,0 +1,31 @@ +{ + "indexes":[ + "Node.id" + ], + "nodes":[ + { + "count":40000000, + "labels":[ + "Node" + ], + "properties":{ + "id":{ + "type":"counter", + "param":"Node.id" + }, + "fraudulent":{ + "type":"bernoulli", + "param":0.0005 + } + } + } + ], + "edges":[ + { + "count":80000000, + "from":"Node", + "to":"Node", + "type":"Edge" + } + ] +}