How to set index sequence for different types of nodes in the to_homogeneous() function #8733
-
I have the Heterodata object from MovieLens, there are two types of nodes: movie and user, with only one edge type :
everything is good except the index, I want the index for the user node to start from 0, and the index for the movie node to start from |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Currently, the order is defined by the ordering of node types in the data._node_store_dict = {key: data._node_store_dict[key] for key in ["user", "movie"]} |
Beta Was this translation helpful? Give feedback.
Mh, yeah, sorry. It needs to be
I think we could add a small helper function for this to make this usage easier. Feel free to submit a PR if you have time :)