spark-knn-graphs icon indicating copy to clipboard operation
spark-knn-graphs copied to clipboard

Does JabeJa assumes same node instance in Main node and NeigbourList?

Open Ishitori opened this issue 1 year ago • 0 comments

I have a huge graph which I would like to partition. I manually create RDD with Node and NeigbourList, but instances of the object while have same id field are different.

I have tried to analyze your code, and I am worried that during the swap procedure you are updating the color of both nodes from left hand side (main node), but you don't update anything in NeigbourList. That means that when the degree index is rebuilt, the old color is used from NeigbourList.

Am I correct? Do I absolutely have to share pointers to the same node instances between left hand side nodes and nodes in NeigbourList?

Ishitori avatar Jan 15 '23 20:01 Ishitori