Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Mathematics and Algorithms > Graphs & Networks > Constructing Graphs > UndirectedEdge (<->, UndirectedEdge) >
Mathematica > Visualization and Graphics > Graphs & Networks > Constructing Graphs > UndirectedEdge (<->, UndirectedEdge) >

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
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF