Overview
Struc2Vec random walk is a biased second-order random walk, the sequences generated by the algorithm can be used as samples for the Struc2Vec graph embedding algorithm. Struc2Vec random walk is part of the framework of Struc2Vec graph embedding, please read chapter Struc2Vec for details.
Command and Configuration
- Command:
algo(random_walk_struc2vec)
- Configurations for the parameter
params()
:
Name | Type | Default |
Specification |
Description |
---|---|---|---|---|
ids / uuids | []_id / []_uuid |
/ | / | IDs or UUIDs of nodes to start the walk; all nodes to be selected if not set |
walk_length | int | 1 | >=1 | Depth of each walk, i.e. the number of nodes walking through |
walk_num | int | 1 | >=1 | Number of walks |
k | int | / | [1,10] | Number of layers of the multilayer graph, it should be equal or lower than the diameter of the graph |
stay_probability | float | / | (0,1] | The probability of staying at the current level |
limit | int | -1 | >=-1 | Number of results to return; return all results if sets to -1 or not set |
Algorithm Execution
Task Writeback
1. File Writeback
Configuration |
Data in Each Row |
Description |
---|---|---|
filename | _id ,_id ,... |
IDs of nodes that walked through |
2.Property Writeback
Not supported by this algorithm.
3. Statistics Writeback
This algorithm has no statistics.
Direct Return
Alias Ordinal | Type | Description |
Column Name |
---|---|---|---|
0 | []perWalk | Array of UUIDs of nodes that walked through each time | [_uuid, _uuid, ...] |
Streaming Return
Alias Ordinal | Type | Description |
Column Name |
---|---|---|---|
0 | []perWalk | Array of UUIDs of nodes that walked through each time | [_uuid, _uuid, ...] |
Real-time Statistics
This algorithm has no statistics.