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

Possible bug: edge properties not correctly propagated with global attachment #85

Open
meiertgrootes opened this issue Jun 26, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@meiertgrootes
Copy link
Member

The globala attachement method uses dgl.to_simple to remove potential duplicate edges. To this end, it reasssigns the result to agent_graph. Default behaviour of .to_simple(), however, is to NOT copy edge properties. This imolies that all graph edge properties are being wiped on use of global_attachment().

TO DO:

  • [ ]: check dgl.to_simple behaviour
  • [ ]: verify that this leads to unintended ressults in dgl_ptm

possible fix:

  • [ ]: own, adjacency matrix based global attachment implementation
@meiertgrootes meiertgrootes added the bug Something isn't working label Jun 26, 2024
@SarahAlidoost SarahAlidoost self-assigned this Aug 12, 2024
@SarahAlidoost
Copy link
Member

SarahAlidoost commented Aug 12, 2024

@meiertgrootes according to dgl.to_simple doc, copy_ndata is True by default whereas copy_edata is False! I added a test to check this and fixed it by adding copy_edata=True to to_simple() function in global_attachment, see here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants