I have a list of edge,I use nx.from_edgelist to create a networkx graph and the networkx graph was seemingly created correctlly,but then I use the from_networkx function in DGL to get a DGLGrpah but the result was None,and here is my code,was anything wrong?
g = dgl.DGLGraph()
graph = nx.from_edgelist(edge_list)
g.from_networkx(graph)
I print nx.info(graph) and the result was
Name:
Type: Graph
Number of nodes: 1915
Number of edges: 3086
Average degree: 3.2230