node2vec icon indicating copy to clipboard operation
node2vec copied to clipboard

why unpersist graph here?

Open zhuhuangjian opened this issue 5 years ago • 1 comments

https://github.com/aditya-grover/node2vec/blob/883241e825e1473ef9916ac79f6686f5ef6b1603/node2vec_spark/src/main/scala/com/navercorp/Node2vec.scala#L101

zhuhuangjian avatar Sep 12 '19 09:09 zhuhuangjian

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

shboy avatar Oct 21 '20 02:10 shboy