Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issues about the metis algorithm #31

Open
immortal13 opened this issue Jun 6, 2021 · 3 comments
Open

issues about the metis algorithm #31

immortal13 opened this issue Jun 6, 2021 · 3 comments

Comments

@immortal13
Copy link

(st, parts) = metis.part_graph(self.graph, self.args.cluster_number)
Thanks for your awesome code, could you please tell me how metis conduct the graph partition?
Cause the self.graph here doesn't include the information about edge weights and feature attributes.

@Orion-wyc
Copy link

Orion-wyc commented Jun 14, 2021

Perhaps, you can find the answer in METIS. Metis only partitions the nodes into <self.args.cluster_numbe> parts ( the example in pymetis can help you better understand it), which means you need to split the features and edge weights manually.

If you know DGL, the dgl.node_subgraph function can help split the features.

@immortal13
Copy link
Author

thank you very much! It is very helpful.

@qwertyuiopqwe123
Copy link

How to generate the three files in this ’input‘ when i wanna run the new dataset?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants