EdgeQ

EdgeQ[g,e]

yields True if e is an edge in the graph g and False otherwise.

Examples

open allclose all

Basic Examples  (2)

Test whether undirected edges are part of a graph:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=

Test directed edges:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=

Scope  (8)

Applications  (3)

Properties & Relations  (4)

Possible Issues  (1)

See Also

UndirectedEdge  DirectedEdge  EdgeList  EdgeCount  EdgeIndex  Graph  VertexQ  GraphQ

Introduced in 2010
(8.0)