# dgl.as_heterograph¶

dgl.as_heterograph(g, ntype='_U', etype='_E')[source]

Convert a DGLGraph to a DGLHeteroGraph with one node and edge type.

DEPRECATED: DGLGraph and DGLHeteroGraph have been merged. This function will

do nothing and can be removed safely in all cases.