How graph adjacency impact graph classification? #9072
Unanswered
evantianzg
asked this question in
Q&A
Replies: 1 comment 11 replies
-
GNN layers in PyG are usually permutation-invariant, and the order of edges does not matter. The |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am performing graph classification using some basic GNN models. I noticed the adjacency of MUTAG for graph classification is just like that:

I understand an ideal GNN model for graph-level tasks should be permutation-invariant. So my question is:
Does the order of the adjacency matrix impact the performance of the GNN model? Especially when using the mini-batch strategy. For example, suppose the first graph has "n_1" nodes and "m_1" edges, and the second graph has "n_2" nodes and "m_2" edges. Suppose the batch size is "b". So there should be "b" graphs for each training. In this case, how can we ensure the number of graphs for a mini-batch training is exactly b since all the graph adjacencies are put together in one?
Beta Was this translation helpful? Give feedback.
All reactions