def net2graph(net_sm):
    ' Transform the network to DGL graph\n\n    Return \n    ------\n    G DGLGraph : graph by DGL\n    '
    start = time.time()
    G = dgl.DGLGraph(net_sm)
    end = time.time()
    t = (end - start)
    print(('Building DGLGraph in %.2fs' % t))
    return G
Transform the network to DGL graph

Return 
------
G DGLGraph : graph by DGL
def net2graph(net_sm):
    ' Transform the network to DGL graph\n\n    Return \n    ------\n    G DGLGraph : graph by DGL\n    '
    start = time.time()
    G = dgl.DGLGraph(net_sm)
    end = time.time()
    t = (end - start)
    print(('Building DGLGraph in %.2fs' % t))
    return G