is an option and annotation for Graph and related functions that specifies what style to use for tagged edges.
TaggedEdgeStyle
is an option and annotation for Graph and related functions that specifies what style to use for tagged edges.
Details
- The following option settings can be used:
-
Automatic use automatic setting for style style use style for all tagged edges {tagistylei,…} use stylei for tagged edges with tags tagi {pattistylei,…} use stylei for tags matching the pattern patti - Styles assigned to specific tags take precedence over styles assigned to all tags.
- To specify multiple style directives, use Directive[style1,style2,…].
- Style and other specifications are effectively applied in the order EdgeStyle, TaggedEdgeStyle, Style and other wrappers and EdgeShapeFunction, with later specifications overriding earlier ones.
Examples
open all close allBasic Examples (2)
Scope (5)
Styles assigned to specific tags take precedence over styles assigned to all tags:
TaggedNestGraph[{2 #, 2 # + 1}&, 1, 2, TaggedEdgeStyle -> {1 -> Blue, Red}]Use Directive to set multiple style directives:
Table[TaggedNestGraph[{2 #, 2 # + 1}&, 1, 2, TaggedEdgeStyle -> s], {s, {Blue, Dashed, Directive[Blue, Dashed]}}]TaggedEdgeStyle works with patterns:
TaggedNestGraph[{2 #, 2 # + 1}&, 1, 2, TaggedEdgeStyle -> {_ ? EvenQ -> Orange}]TaggedEdgeStyle can be combined with EdgeShapeFunction:
ef1[el_, ___] := Arrow[el, 0.1]TaggedNestGraph[{2 #, 2 # + 1}&, 1, 2, TaggedEdgeStyle -> Blue, EdgeShapeFunction -> ef1]EdgeShapeFunction has higher priority than TaggedEdgeStyle:
ef2[el_, ___] := {Red, Arrow[el, 0.1]}TaggedNestGraph[{2 #, 2 # + 1}&, 1, 2, TaggedEdgeStyle -> Blue, EdgeShapeFunction -> ef2]TaggedEdgeStyle can be combined with BaseStyle:
TaggedNestGraph[{2 #, 2 # + 1}&, 1, 2, BaseStyle -> Red, TaggedEdgeStyle -> Dashed]TaggedEdgeStyle has higher priority than BaseStyle:
TaggedNestGraph[{2 #, 2 # + 1}&, 1, 2, BaseStyle -> Red, TaggedEdgeStyle -> Blue]Related Guides
History
Text
Wolfram Research (2026), TaggedEdgeStyle, Wolfram Language function, https://reference.wolfram.com/language/ref/TaggedEdgeStyle.html.
CMS
Wolfram Language. 2026. "TaggedEdgeStyle." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TaggedEdgeStyle.html.
APA
Wolfram Language. (2026). TaggedEdgeStyle. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TaggedEdgeStyle.html
BibTeX
@misc{reference.wolfram_2026_taggededgestyle, author="Wolfram Research", title="{TaggedEdgeStyle}", year="2026", howpublished="\url{https://reference.wolfram.com/language/ref/TaggedEdgeStyle.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_taggededgestyle, organization={Wolfram Research}, title={TaggedEdgeStyle}, year={2026}, url={https://reference.wolfram.com/language/ref/TaggedEdgeStyle.html}, note=[Accessed: 12-June-2026]}