Replies: 1 comment 2 replies
-
I am not totally sure, but |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have a heterogeneous graph. I used the following code to convert it to a networkx graph:
g = torch_geometric.utils.to_networkx(data.to_homogeneous(), to_undirected=False)
The number edges in the original graph is 297. when it is converted to homogeneous graph, it is also 297. But when it is converted to networkx, it will becom 293!! why??
homogeneous graph is: Data(edge_index=[2, 297], batch=[97], node_type=[97], edge_type=[297])
networkx graph is: DiGraph with 97 nodes and 293 edges
Beta Was this translation helpful? Give feedback.
All reactions