jraph icon indicating copy to clipboard operation
jraph copied to clipboard

What's the purpose of empty graph in padding?

Open EngineerKhan opened this issue 4 years ago • 1 comments

Hi!

I came across the padding function (pad_with_graphs) and have a naive question: why do we use an empty graph there? Also, we specify only the number of edges (and nodes). Which algorithm determines their incidence (i.e. which edge would connect which pair of nodes)? Thanks a lot.

EngineerKhan avatar Nov 05 '21 01:11 EngineerKhan

Hey!

Good question - we connect all edges to a single node (the first one) and then all other nodes are disconnected.

We use this because then with unpad_with_graphs we know how to remove the padding graph.

jg8610 avatar May 12 '22 07:05 jg8610