Graph-Classification-with-GCN
Graph-Classification-with-GCN copied to clipboard
Questions about the "global node" approach
Hi, I have a question about the "global node" approach. Could you tell me more details about how to connect the global node with its graph? Thanks for your great code!
Hi, thank you for your question. In the global node approach, the connection between each global node and all the other nodes of its graph is made by editing the adjacency matrix
You can see this in file_utils.py, in the build_adj_diag funciton.
For each global node you have to add one column and one row to the adjacency matrix and specify the correct relations with every other node.
This comment from Kipf may help you: https://github.com/tkipf/gcn/issues/4#issuecomment-353002759
I hope i've answered to your question, feel free to ask again if you need further informations