Get Started
Tutorials
API Reference
DGLGraph.
__contains__
Return True if the graph contains node vid.
Examples
>>> G = dgl.DGLGraph() >>> G.add_nodes(3) >>> 0 in G True