In the documentation (https://docs.dgl.ai/en/latest/guide/distributed-preprocessing.html#construct-node-edge-features-for-a-heterogeneous-graph), I see this paragraph:
dgl.DGLGraph
output by convert_partition.py stores a heterogeneous graph partition as a homogeneous graph. Its node data contains a field called orig_id to store the node IDs of a specific node type in the original heterogeneous graph and a field of NTYPE to store the node type.
Notably, each heterogeneous graph partition is stored as a homogeneous DGL graph, but with special node data fields that tell you its node type (and nodetype-specific ids).
Are there any implications/limitations I should be aware of with storing heterogeneous graphs as a homogeneous graph? For instance, I can imagine that current DGL metapath-based random walks wouldn’t work on this homogeneous graph.
Related: is it possible to take this homogeneous graph, and convert it to its equivalent heterogeneous graph, so that we can work with it in its “natural” way? Or are there limitations/considerations that I’m overlooking?