Overview
The CALL
statement can invoke system-defined procedures, such as graph algorithms. For more details, refer to Graph Analytics & Algorithms manual.
<call statement> ::=
"CALL" <procedure reference> [ <yield clause> ]
<yield clause> ::=
"YIELD" <yield item> [ { "," <yield item> }... ]
<yield item> ::=
<column name> [ "AS" <binding variable> ]
Details
- The
YIELD
clause can be used to select and rename columns from the table produced by the procedure (if applicable), making them available for use reference in subsequent parts of the query.
Running an Algorithm
To run the Degree Centrality algorithm:
CALL algo.degree.run("my_hdc_graph", {
direction: "in",
order: 'desc'
}) YIELD r
RETURN r