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

How to convert PyG HeteroData object to CogDL dataset #412

Open
xiachenrui opened this issue Feb 28, 2023 · 3 comments
Open

How to convert PyG HeteroData object to CogDL dataset #412

xiachenrui opened this issue Feb 28, 2023 · 3 comments

Comments

@xiachenrui
Copy link

❓ Questions & Help

Hi all,
I want to convert a PyG HeteroData object to cogdl.data.Graph. Can I use from_pyg_data function ? I am not sure if it support HeteroData object.

Bests !
Chen-Rui

@xiachenrui xiachenrui changed the title How to convert PyG dataset to CogDL dataset How to convert PyG HeteroData object to CogDL dataset Feb 28, 2023
@cenyk1230
Copy link
Member

Hi @xiachenrui ,

The current from_pyg_data API does not support PyG's HeteroData. Which dataset do you want to use?

@xiachenrui
Copy link
Author

Thanks for your reply!

I create the PyG HeteroData object with my own data. In detail, my dataset contains one node type and multiple edge types. Could you please tell me how to use my data to create a Codgl Graph object, I do not find a tutorial for hetero graph buliding in Codgl yet.

@xiachenrui
Copy link
Author

I found the bulid-in hetero dataset such as gtn-acm seems use a list to represent adjacent matrix of every edge type respectively. But I am still not clear how node types are involved.

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

2 participants