UndirectedEdge 
UndirectedEdge[u,v] or uv
represents an undirected edge between u and v.
UndirectedEdge[u,v,t] or uv
represents an undirected edge between u and v with tag t.
Details

- UndirectedEdge is also known as link or connection.
- UndirectedEdge[u,v] can be input as uv. The character is entered as
ue
or \[UndirectedEdge].
- UndirectedEdge[u,v,t] can be input as u
v. An empty template
can entered as
tue
, and
moves the cursor to the overscript position.
Examples
open allclose allBasic Examples (5)
Build a graph with undirected edges:
Enter using a two-way rule <->:
The two-way rules are converted to undirected edges:
Style and label individual edges:
StandardForm formatting:
Scope (6)
Use wrappers to specify edge properties, including style:
Wrappers can be used to specify any supported edge annotation:
Use UndirectedEdge to specify individual edges for options, including style:
Properties & Relations (3)
Use UndirectedEdge to construct undirected graphs:
Inside graph constructors, TwoWayRule[a,b] is converted to UndirectedEdge[a,b]:
Text
Wolfram Research (2010), UndirectedEdge, Wolfram Language function, https://reference.wolfram.com/language/ref/UndirectedEdge.html (updated 2020).
CMS
Wolfram Language. 2010. "UndirectedEdge." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/UndirectedEdge.html.
APA
Wolfram Language. (2010). UndirectedEdge. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/UndirectedEdge.html