BrizziB / Graph-Classification-with-GCN

A simple implementation of a portion of GCN (Kipf & Welling) that can handle graph classification.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Questions about the "global node" approach

aaaaava opened this issue · comments

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: tkipf/gcn#4 (comment)

I hope i've answered to your question, feel free to ask again if you need further informations