You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/asciidoc/common-usage/running-algorihms.adoc
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ This execution mode is especially useful in three scenarios:
53
53
54
54
* Algorithms can depend on the results of previous algorithms without the need to write to Neo4j.
55
55
* Algorithm results can be written altogether (see <<catalog-graph-write-node-properties, write node properties>> and <<catalog-graph-write-relationship, write relationships>>).
56
-
* Algorithm results can be queried via Cypher without the need to write to Neo4j at all (see `gds.util.nodeProperty`).
56
+
* Algorithm results can be queried via Cypher without the need to write to Neo4j at all (see `<<utility-functions-catalog, gds.util.nodeProperty>>`).
57
57
58
58
A statistical summary of the computation is returned as a Cypher result row.
59
59
As for the `write` mode, mutated data can be node properties (such as Page Rank scores), new relationships (such as Node Similarity similarities), or relationship properties.
Copy file name to clipboardExpand all lines: doc/asciidoc/management-ops/utility-functions.adoc
+65-4Lines changed: 65 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
This section describes the utility functions and shows their usage in concrete examples.
5
5
6
6
[[utility-functions-table]]
7
-
[opts=header,cols="1m,1m"]
7
+
[opts=header,cols="1m,1"]
8
8
|===
9
9
| Name | Description
10
10
| gds.version | Return the version of the installed Neo4j Graph Data Science library.
@@ -26,11 +26,13 @@ RETURN gds.version() AS version
26
26
|===
27
27
--
28
28
29
+
30
+
[[utility-functions-numeric]]
29
31
== Numeric Functions
30
32
31
33
.Numeric Functions
32
34
[[Numeric-functions-table]]
33
-
[opts=header,cols="1m,1m"]
35
+
[opts=header,cols="1m,1"]
34
36
|===
35
37
| Name | Description
36
38
| gds.util.NaN | Returns NaN as a Cypher value.
@@ -42,7 +44,7 @@ RETURN gds.version() AS version
42
44
=== Syntax
43
45
44
46
[[Numeric-functions-syntax-table]]
45
-
[opts=header,cols="1m,1m"]
47
+
[opts=header,cols="1m,1"]
46
48
|===
47
49
| Name | Parameter
48
50
| gds.util.NaN() | -
@@ -94,6 +96,8 @@ RETURN gds.util.isInfinite(value) AS isInfinite
94
96
The utility function `gds.util.NaN` can be used as an default value for input parameters, as shown in the examples of <<algorithms-similarity-cosine-procedure-sample, cosine similarity>>.
95
97
A common usage of `gds.util.IsFinite` and `gds.util.IsInfinite` is for filtering streamed results, as for instance seen in the examples of <<algorithm-all-pairs-shortest-path-sample, `gds.alpha.allShortestPaths`>>.
96
98
99
+
100
+
[[utility-functions-node-path]]
97
101
== Node and Path Functions
98
102
99
103
.Node and Path Functions
@@ -108,7 +112,7 @@ A common usage of `gds.util.IsFinite` and `gds.util.IsInfinite` is for filtering
108
112
=== Syntax
109
113
110
114
[[Node-and-Path-functions-syntax-table]]
111
-
[opts=header,cols="1m,1m"]
115
+
[opts=header,cols="1m,1"]
112
116
|===
113
117
| Name | Parameters
114
118
| gds.util.asNode(nodeId: NUMBER) | nodeId of a node in the neo4j-graph
@@ -167,3 +171,60 @@ RETURN [x in gds.util.asNodes(nodeIds)| x.name] AS nodes
167
171
--
168
172
169
173
As many algorithms streaming mode only return the node id, `gds.util.asNode` and `gds.util.asNodes` can be used to retrieve the whole node from the neo4j database.
174
+
175
+
176
+
[[utility-functions-catalog]]
177
+
== Catalog Functions
178
+
179
+
Catalog functions allow accessing in-memory graphs directly from a Cypher query.
180
+
181
+
.Catalog Functions
182
+
[opts=header,cols="1m,1"]
183
+
|===
184
+
| Name | Description
185
+
| gds.util.nodeProperty | Allows accessing a node property stored in a named graph.
186
+
|===
187
+
188
+
=== Syntax
189
+
190
+
[opts=header,cols="1m,1"]
191
+
|===
192
+
| Name | Description
193
+
| gds.util.nodeProperty(graphName: STRING, nodeId: INTEGER, propertyKey: STRING) | Named graph in the catalog, Neo4j node id and node property key present in the named-graph.
0 commit comments