I have a bipartite graph, and want to create a 2-hop graph for one side of it.
Besides, since it has node attributes, I also want to put node attribute on the edge of new graph.
If there are multiple 2-hop path between two nodes, each path will become an edge of new graph (thus the output graph is a multigraph).
How can I achieve that under DGL framework?
Here is an example (Node as A1, B1, Node attribute as x1, y1)
Old graph: A1[x1] → B1[y1] → A2[x2], A1[x1] → B2[y2] → A2[x2]
2-hop graph: A1[x1] --[y1]–> A2[x2], A1[x1] --[y2]–> A2[x2]