# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# %matplotlib inline

import dgl
import networkx as nx
def draw_dgl(G):
    nx_G = G.to_networkx()
    nx.draw(nx_G, with_labels=True)



g = dgl.DGLGraph()

g.add_nodes(1)

draw_dgl(g)



StarcoderdataJupyterScriptsDedupFiltered