Is it possible to convert a graph already in network format to the dgl format? It contains node and edge attributes.

If not, is there a simple way to create a dgl graph from an adjacency matrix where each non zero entry has the edge weight?

Thanks in advance!