dgl.DGLGraph.has_edge_between¶
-
DGLGraph.
has_edge_between
(u, v)¶ Return True if the edge (u, v) is in the graph.
Parameters: Returns: True if the edge is in the graph, False otherwise.
Return type: Examples
>>> G = dgl.DGLGraph() >>> G.add_nodes(3) >>> G.add_edge(0, 1) >>> G.has_edge_between(0, 1) True >>> G.has_edge_between(1, 0) False
See also