Replies: 2 comments 12 replies
-
The easiest way to get the final permutation and partition is to add a node ID attribute to your data: data.n_id = torch.arange(data.num_nodes)
for subdata in ClusterData(data, …):
print(subdata.n_id) |
Beta Was this translation helpful? Give feedback.
2 replies
-
Thank you for your reply!By the way,What does cluster_data.partptr stand for?In my example,cluster_data.partptr: tensor([ 0, 9870, 19717]) |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As I known,ClusterData uses the method of metis.But how to get the result of partition?
What does cluster_data.partptr stand for?
I understand, all_ node_index[partptr[0]:partptr[1]] is partition1, all_ node_index[partptr[1]:partptr[2]] is partition2.
If so,What is the difference between this and random node partitioning,If not,how to get the result of partition?
Here is my code:
Beta Was this translation helpful? Give feedback.
All reactions