weihua916 / powerful-gnns

How Powerful are Graph Neural Networks?
MIT License
1.16k stars 223 forks source link

Question about input data #1

Closed k1ochiai closed 5 years ago

k1ochiai commented 5 years ago

Hi. Thanks for great work. I have a question about input data, specifically for node id numbering. Is a node id unique across all graphs? or unique in a graph?

I mean, graph 1 contains node A, B, C, and graph 2 contain node A, D, E. Then, node ids for graph 1 and 2 are both node 1, 2, 3 (for inductive setting). If transductive setting, node ids are 1, 2, 3 for graph1 and 1, 4, 5 for graph2.

Is it correct?

weihua916 commented 5 years ago

Hi! Node ids are shared across graphs because we are considering graph classification. For instance, in molecule classification, node ids can represent the type of atoms, say carbon or nitrogen.

k1ochiai commented 5 years ago

Thanks for your reply. I understand.