How to conduct graph classification where nodes belong to multiple graphs

Hi everyone,

I am using GNNs to perform graph classification tasks. I first used the public TUDatasets for graph classification, and it works well. Then I tried to conduct experiments with my own datasets. However, I found that there is a “graph_indicator” file in the public TUDatasets (like MUTAG). After carefully reading the description and content of this “graph_indicator” file, I suddenly realized the difference between my dataset and the public dataset: Each node on public datasets belongs to a single graph, while in my dataset, some nodes belong to multiple graphs. Therefore, I cannot create a similar “graph_indicator” file as in the public datasets.

So my question is: how should I do for graph classification where nodes belong to multiple graphs?

Any help or suggestions are appreciated.