Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test on other dataset #2

Open
fuvty opened this issue Apr 6, 2023 · 3 comments
Open

Test on other dataset #2

fuvty opened this issue Apr 6, 2023 · 3 comments

Comments

@fuvty
Copy link

fuvty commented Apr 6, 2023

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!

@seanliu96
Copy link
Collaborator

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.

@fuvty
Copy link
Author

fuvty commented Apr 8, 2023

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?

@seanliu96
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants