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

Questions about the "global node" approach #3

Open
aaaaava opened this issue Apr 17, 2020 · 1 comment
Open

Questions about the "global node" approach #3

aaaaava opened this issue Apr 17, 2020 · 1 comment

Comments

@aaaaava
Copy link

aaaaava commented Apr 17, 2020

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!

@BrizziB
Copy link
Owner

BrizziB commented Apr 22, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants