@@ -20,7 +20,8 @@ This topic includes:
20
20
*** <<algorithms-node-similarity-examples-limits-topk-bottomk, topK and bottomK>>
21
21
*** <<algorithms-node-similarity-examples-limits-topn-bottomn, topN and bottomN>>
22
22
** <<algorithms-node-similarity-examples-degree-similarity-cutoff, Degree cutoff and similarity cutoff>>
23
-
23
+ ** <<algorithms-node-similarity-examples-memory-estimation, Memory Estimation>>
24
+ ** <<algorithms-node-similarity-examples-stats, Stats>>
24
25
25
26
[[algorithms-node-similarity-intro]]
26
27
== Introduction
@@ -589,3 +590,47 @@ ORDER BY Person1
589
590
3+|6 rows
590
591
|===
591
592
--
593
+
594
+
595
+ [[algorithms-node-similarity-examples-memory-estimation]]
596
+ === Memory Estimation
597
+
598
+ [role=query-example]
599
+ --
600
+ .The following will estimate the memory requirements for running the algorithm:
601
+ [source, cypher]
602
+ ----
603
+ CALL gds.nodeSimilarity.write.estimate('myGraph', {
604
+ writeRelationshipType: 'SIMILAR',
605
+ writeProperty: 'score'
606
+ })
607
+ YIELD nodeCount, relationshipCount, bytesMin, bytesMax, requiredMemory
608
+ ----
609
+
610
+ .Results
611
+ [opts="header", cols="1,1,1,1,1"]
612
+ |===
613
+ | nodeCount | relationshipCount | bytesMin | bytesMax | requiredMemory
614
+ | 9 | 18 | 2640 | 2640 | "2640 Bytes"
615
+ |===
616
+ --
617
+
618
+ [[algorithms-node-similarity-examples-stats]]
619
+ === Stats
620
+
621
+ [role=query-example]
622
+ --
623
+ .The following will run the algorithm and returns the result in form of statistical and measurement values
624
+ [source, cypher]
625
+ ----
626
+ CALL gds.nodeSimilarity.stats('myGraph')
627
+ YIELD nodesCompared
628
+ ----
629
+
630
+ .Results
631
+ [opts="header",cols="1"]
632
+ |===
633
+ | nodesCompared
634
+ | 4
635
+ |===
636
+ --
0 commit comments