apache / incubator-hugegraph-computer

HugeGraph Computer - A distributed graph processing system for hugegraph (OLAP)
https://hugegraph.apache.org/docs/quickstart/hugegraph-computer/
Apache License 2.0
42 stars 41 forks source link

[Feature] random walk algorithm support biased second order random walk #279

Closed diaohancai closed 7 months ago

diaohancai commented 10 months ago

Feature Description (功能描述)

According to the paper《node2vec: scalable feature learning for networks》. The current random walk algorithm requires 2 additional features.

  1. Biased random walk.
  2. Second order random walk.

Biased random walk, control the probability of walking edges through edge weight. Second order random walk, add 2 parameters to control the walking strategy. (1) parameter p, called return factor. Controls the probability of re-walk to a previously walked vertex (2) parameter q, called in-out factor. Controls whether to walk inward or outward.

Please refer to the paper design diagram:

P1

image

P2

image