Replies: 3 comments 3 replies
-
We currently do not support conversion of |
Beta Was this translation helpful? Give feedback.
-
@rusty1s thanks a lot, I followed your suggestion and it worked. However, please bear in mind that the majority of applications, at least in the Manufacturing Domain will take into account Heterogeneous Graphs, rather than homogeneous ones. |
Beta Was this translation helpful? Give feedback.
-
I am also trying the same on a very small graph: the goal is to label the nodes and appropriately color them in NetworkX. I tried this: My Graph data set and metadata looks like this:
Would appreciate any suggestions to carry the node-types/values to networkx so that I can appropriately map and color. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I'm reproducing this example for heterogeneous graphs.
I would like to draw the graph with NetworkX using the following:
print(type(data)) networkx_graph = to_networkx(data) nx.draw(networkx_graph)
In this case, of course the type of data is
<class 'torch_geometric.data.hetero_data.HeteroData'>
And I got the following error:
for key, value in data(*(node_attrs + edge_attrs)): TypeError: 'HeteroData' object is not callable
Is this possible for Heterogeneous Graphs? Should I follow a different strategy if I need to visualize the Graph I'm processing?
Looking forward to your comments.
Beta Was this translation helpful? Give feedback.
All reactions