Methods for Assigning Unique Name Labels to Each Graph in a Multi-Graph Dataset

“Could you kindly explain how I can assign a unique name label to each graph when constructing a dataset with multiple graphs?”

what’s the multi-graph dataset you mean here? are you using DGLDataset or graphbolt.OnDiskDataset?

Thank you very much for your reply, I encountered this problem when I was using ‘DGLDataset’ to make my own multi-graph dataset

Are you working on graph classification task? why do you need a unique name for each graph? For DGLGraph object, there’s no attribute like name for now. you need to save such info on your own, probably in another dict object.

Thank you very much for your reply, I am working on the graph classification task, because I want to find the corresponding graph in my original dataset from the graph dataset, and each graph information in my original dataset will have a graph name, so I want to find it according to the graph name in the graph dataset, if I can do it, it will be helpful for me to analyze the graph data.