Basic
Command
algo(random_walk).params(<>)
Configuration Item | Type | Default Value | Specification | Description |
---|---|---|---|---|
ids | []_id |
All nodes | List of IDs of the start nodes | |
uuids | []_uuid |
All nodes | List of UUIDs of the start nodes | |
walk_length | int | 1 | >=1 | Distance/Steps of each walk |
walk_num | int | 1 | >=1 | Number of walks |
edge_schema_property | []@<schema>?.<property> |
Weight of 1 | Numeric edge property, LTE needed | Name of the property where the edge weight locates, schema can be either carried or not, multiple properties can be specified; edges without this property will not participate in the random walk calculation |
limit | int | -1 | -1 or >=0 | Number of results to return, -1 means to return all results |
File Writeback
.write({file: {<>}})
Parameter | Type | Default Value | Specification | Description |
---|---|---|---|---|
filename | string | / | / | Name of the file path to be written back. Columns of the file are: _id , _id , ... |
Property Writeback
(Not supported)
Statistics Writeback
(Not supported)
Direct Return
as <alias> return <alias>
Alias Number | Type | Description | Column Name |
---|---|---|---|
0 | []perWalk | Array of nodes that walked through each time | [_uuid, _uuid, ...] |
Streaming Return
.stream() as <alias> return <alias>
Alias Number | Type | Description | Column Name |
---|---|---|---|
0 | []perWalk | Array of nodes that walked through each time | [_uuid, _uuid, ...] |
Real-time Statistics
(Not supported)