Skip to content
Discussion options

You must be logged in to vote

I think you should be able to have node features if you convert them to edge features before transforming the graph via LineGraph, .e.g:

data = ...
src, dst = data.edge_index
data.edge_attr = torch.cat([data.x[src], data.x[dst]], dim=-1)
data = LineGraph()(data)

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@rusty1s
Comment options

@ZIKEYUAN
Comment options

@rusty1s
Comment options

@ZIKEYUAN
Comment options

@rusty1s
Comment options

Answer selected by ZIKEYUAN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants