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.
- 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 uv. An empty template can entered as tue, and moves the cursor to the overscript position.
Examplesopen allclose all
Basic 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:
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:
Use a list of edges to indicate which edges to highlight:
Properties & Relations (3)
Use UndirectedEdge to construct undirected graphs:
Inside graph constructors, TwoWayRule[a,b] is converted to UndirectedEdge[a,b]:
Wolfram Research (2010), UndirectedEdge, Wolfram Language function, https://reference.wolfram.com/language/ref/UndirectedEdge.html (updated 2020).
Wolfram Language. 2010. "UndirectedEdge." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/UndirectedEdge.html.
Wolfram Language. (2010). UndirectedEdge. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/UndirectedEdge.html