rusty1s / pytorch_sparse

PyTorch Extension Library of Optimized Autograd Sparse Matrix Operations
MIT License
1.01k stars 147 forks source link

Meaning of out_root_n_id in script csrc/cpu/ego_sample_cpu.cpp #337

Closed zhaoqf123 closed 9 months ago

zhaoqf123 commented 1 year ago

May I know what's the meaning of out_root_n_id in csrc/cpu/ego_sample_cpu.cpp?

I thought it was the original node-id of the raw big graph, but after testing, it's not.

Could you please explain it a bit?

Thank you.

zhaoqf123 commented 1 year ago

May I know what's the meaning of out_root_n_id in csrc/cpu/ego_sample_cpu.cpp?

I thought it was the original node-id of the raw big graph, but after testing, it's not.

Could you please explain it a bit?

Thank you.

I just got it. It means the out_root_n_id-th node in the subgraph is the ego-node!

rusty1s commented 1 year ago

Yes, exactly :)

github-actions[bot] commented 9 months ago

This issue had no activity for 6 months. It will be closed in 2 weeks unless there is some new activity. Is this issue already resolved?