# dgl.DGLGraph.clear¶

DGLGraph.clear()[source]

Remove all nodes and edges, as well as their features, from the graph.

Examples

>>> G = dgl.DGLGraph()