dgl.to_hetero

dgl.to_hetero(G, ntypes, etypes, ntype_field='_TYPE', etype_field='_TYPE', metagraph=None)[source]

Convert the given homogeneous graph to a heterogeneous graph.

DEPRECATED: Please use to_heterogeneous