Heterogeneous to bipartite graph dgl

Hi, does anyone know how to convert a relational graph to a bipartite graph?
I want to plot the graph through networkx.

BTW…it would be great if more heterogeneous graph functions can be supported.

You can use to_block to convert a graph into a corresponding bipartite graph.

For the request on heterogeneous graph functions, could you be more specific?

Thanks, such as dgl.to_networkx