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

Support PyG #93

Merged
merged 59 commits into from
Dec 27, 2023
Merged

Support PyG #93

merged 59 commits into from
Dec 27, 2023

Conversation

heatingma
Copy link
Member

No description provided.

"""
from torch_geometric.data import Data
assert type(G1) == Data, f"G1 must be torch_geometric.data.Data"
assert type(G2) == Data, f"G2 must be torch_geometric.data.Data"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please replace assert with ValueError

# The testing function for networkx
def _test_pyg(graph_num_nodes, backends):
"""
Test the RRWM algorithm on pairs of isomorphic graphs using NetworkX
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NetworkX -> PyG

return K


def to_pyg(adj_matrix, backend=None):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should there be "from_pyg" and "to_networkx", "to_graphml"?

Copy link

codecov bot commented Dec 27, 2023

Codecov Report

Attention: 11 lines in your changes are missing coverage. Please review.

Comparison is base (5795e2b) 92.86% compared to head (e743cbb) 92.81%.
Report is 1 commits behind head on main.

Files Patch % Lines
pygmtools/utils.py 79.62% 11 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #93      +/-   ##
==========================================
- Coverage   92.86%   92.81%   -0.05%     
==========================================
  Files          20       20              
  Lines        7621     7667      +46     
==========================================
+ Hits         7077     7116      +39     
- Misses        544      551       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rogerwwww rogerwwww merged commit c537694 into Thinklab-SJTU:main Dec 27, 2023
7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants