Open zhuhuangjian opened 5 years ago
because int different iter of numWalks, the graph should be reinitialized. \ p.s val (j, q) = GraphOps.setupAlias(clickNode.neighbors) val nextNodeIndex: PartitionID = GraphOps.drawAlias(j, q) clickNode.path = Array(vertexId, clickNode.neighbors(nextNodeIndex)._1) generates a random nextNodeIndex in graph init
https://github.com/aditya-grover/node2vec/blob/883241e825e1473ef9916ac79f6686f5ef6b1603/node2vec_spark/src/main/scala/com/navercorp/Node2vec.scala#L101