DualMessagePassing icon indicating copy to clipboard operation
DualMessagePassing copied to clipboard

Test on other dataset

Open fuvty opened this issue 3 years ago • 3 comments

Thanks for the great work! I am also studying subgraph counting and would like to test your code with other query and target graphs. How should I convert the original data (say in networkx format) to the supported format of yours? In addition, I want to perform subgraph counting with undirected, homogeneous graphs, is that possible? Thanks a lot!

fuvty avatar Apr 06 '23 03:04 fuvty

Hi, thanks for your interest in our work. I think the simplest way is to refer to the official tutorial. Or you can convert to networkx format to gml format, which is further loaded by read_graphs_from_dir function.

seanliu96 avatar Apr 06 '23 06:04 seanliu96

Thank you so much for your timely response! I think I am now able to generate the data in the graphs and pattern folders. Is there some way to generate other data needed for training? For example, the .pt files in the datasets folder. Additionally, if I set the graph and pattern to be bi-directional ( edge (0,1) exists iff edge (1,0) exists), will the model be able to perform counting on undirected graphs automatically?

fuvty avatar Apr 08 '23 10:04 fuvty

For the data preprocessing, I think the current code in NeuralSubgraphCounting can help you. Undirected graph matching has been evaluated in our paper such as Regular and Erdos-Renyi graphs.

seanliu96 avatar Apr 09 '23 15:04 seanliu96