Dgl.metapath_reachable_graph

Hello, I encountered a problem when using meta_path_g = dgl.metapath_reachable_graph(g, meta_path). The edge type of meta_path_g after using dgl.metapath_reachable_graph will be set to ‘_E’, but I still want to keep the edge type of g before, what do I do?

The resulting graph will always be a graph with a single edge type, so the edge type would not matter and you can directly access the data or topology without edge type (e.g. g.edata or g.edges()).

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.