-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOverview_size.cypher
44 lines (43 loc) · 1020 Bytes
/
Overview_size.cypher
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Overview size
MATCH (n)
WITH COUNT(n) AS nodeCount
MATCH ()-[]->()
WITH nodeCount
,count(*) AS relationshipCount
MATCH (a:Artifact:Archive)
WITH nodeCount
,relationshipCount
,count(DISTINCT a.fileName) AS artifactCount
MATCH (p:Package)
WITH nodeCount
,relationshipCount
,artifactCount
,count(DISTINCT p.fqn) AS packageCount
MATCH (t:Type)
WITH nodeCount
,relationshipCount
,artifactCount
,packageCount
,count(DISTINCT t.fqn) AS typeCount
MATCH (m:Method)
WITH nodeCount
,relationshipCount
,artifactCount
,packageCount
,typeCount
,count(DISTINCT m.signature) AS methodCount
MATCH (member:Member)
WITH nodeCount
,relationshipCount
,artifactCount
,packageCount
,typeCount
,methodCount
,count(DISTINCT member.signature) AS memberCount
RETURN nodeCount
,relationshipCount
,artifactCount
,packageCount
,typeCount
,methodCount
,memberCount