dgl.DGLGraph.from_networkx

DGLGraph.from_networkx(nx_graph, node_attrs=None, edge_attrs=None)

DEPRECATED: please use

dgl.from_networkx(nx_graph, node_attrs, edge_attrs)

which will return a new graph created from the networkx graph.