UndirectedEdge

UndirectedEdge[u, v] or
represents an undirected edge of a graph with vertices u and v.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples (5)Basic Examples (5)

Build a graph with undirected edges:

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

List of edges:

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

Use EscueEsc to enter directly:

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

Use to enter directly:

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

Style and label individual edges:

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

StandardForm formatting:

In[1]:=
Click for copyable input
Out[1]=
New in 8
New to Mathematica? Find your learning path »
Have a question? Ask support »