dgl.DGLGraph.__contains__

DGLGraph.__contains__(vid)

Return True if the graph contains node vid.

Examples

>>> G = dgl.DGLGraph()
>>> G.add_nodes(3)
>>> 0 in G
True