Hi,
I have a Heterogeneous graph of two node types. Ex: {’_ID’: tensor([0, 1, 0, 1, 2, 3]), ‘_TYPE’: tensor([0, 0, 1, 1, 1, 1])}. Can I use DGL library and get the below ones -
-
I would like to combine the above two node types and want to see node numbers like - [0, 1, 2, 3, 4, 5].
-
Whenever I want, I should get the node type of a given node number, i.e., XX.node[5] = 1. In other words, mapping between these continuous nodes and Heterogeneous graph node types.
The requirement is:
I will use the DGL library to store the heterogeneous graph data along with attributes.
Convert the nodes with different types to continuous nodes and use these nodes for index table construction.