This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

UndirectedEdge

UndirectedEdge or
represents an undirected edge of a graph with vertices u and v.
Build a graph with undirected edges:
List of edges:
Use Esc ue Esc to enter directly:
Use to enter directly:
Style and label individual edges:
StandardForm formatting:
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 Esc ue Esc 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]=
Use wrappers to specify edge properties, including style:
Labels:
Interactive behavior:
Wrappers can be used to specify any supported edge property:
As well as new ones:
Use UndirectedEdge to specify individual edges for options, including style:
Labels:
Use a list of edges to indicate which edges to highlight:
A subgraph:
Use edge patterns to select and count edges:
Use UndirectedEdge to construct undirected graphs:
Tree graphs:
Path graphs:
The adjacency matrix of an undirected graph is symmetric:
New in 8