tkipf / keras-gcn

Keras implementation of Graph Convolutional Networks
MIT License
791 stars 266 forks source link

Graph Convolution Layer Correct? #35

Closed why94nb closed 6 years ago

why94nb commented 6 years ago

Hey, I must misunderstand your code about graph convolution layer. Is graph convolution implemented within graph.py? I know in your tf version, there's this chunk of code commented by #convolve in layers.py. So what is the corresponding part in graph.py? Thank you for your time.

why94nb commented 6 years ago

I guess I was not clear about my question.. I mean, I am trying to understand how the adjacency matrix is involved in this code? Anyone can explain this for me? Appreciate it.

tkipf commented 6 years ago

The convolution happens in the ‚call‘ method. The adjacency matrix (or matrices) are summarized in the variable ‚supports‘. Hope this helps.