EdgeStyle
Details

- The following option settings can be used:
-
Automatic use automatic setting for style style use style for all edges {vivj->styleij,…} use styleij for edge vivj {pattistylei,…} use stylei for edges matching the pattern patti - Edges with explicit edge style vw->style are taken to use the automatic style.
- The wrapper Style[vw,style] is equivalent to Annotation[vw,EdgeStyle->style] and can be used when creating graphs in functions such as Graph etc.
- EdgeStyle can apply to lines and faces.
- To specify multiple style directives use Directive[style1,style2,…].
- Style and other specifications are effectively applied in the order EdgeStyle, Style and other wrappers, and EdgeShapeFunction, with later specifications overriding earlier ones.
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Scope (9)Survey of the scope of standard use cases
EdgeStyle can be used for general graphs:

https://wolfram.com/xid/0bdphtoda-w9j3f


https://wolfram.com/xid/0bdphtoda-fi80b1


https://wolfram.com/xid/0bdphtoda-xwdja


https://wolfram.com/xid/0bdphtoda-kjdxrt

Use EdgeStyle in an Annotation wrapper:

https://wolfram.com/xid/0bdphtoda-f4jo2s

Alternatively, use a Style wrapper:

https://wolfram.com/xid/0bdphtoda-nmuw

Use Directive to set multiple style directives:

https://wolfram.com/xid/0bdphtoda-o978uk

EdgeStyle works with patterns:

https://wolfram.com/xid/0bdphtoda-64pi0q

EdgeStyle can be combined with EdgeShapeFunction:

https://wolfram.com/xid/0bdphtoda-byw1p6

https://wolfram.com/xid/0bdphtoda-gt52v9

EdgeShapeFunction has higher priority than EdgeStyle:

https://wolfram.com/xid/0bdphtoda-f7ohq3

https://wolfram.com/xid/0bdphtoda-cfn5oz

EdgeStyle can be combined with BaseStyle:

https://wolfram.com/xid/0bdphtoda-mwzwu

EdgeStyle has higher priority than BaseStyle:

https://wolfram.com/xid/0bdphtoda-ovk4z6

Possible Issues (1)Common pitfalls and unexpected behavior
Using Rule to indicate edges does not work:

https://wolfram.com/xid/0bdphtoda-crp5pc

Use parentheses to get correct parsing:

https://wolfram.com/xid/0bdphtoda-bue20b


https://wolfram.com/xid/0bdphtoda-m04fnn


https://wolfram.com/xid/0bdphtoda-mh35n

Wolfram Research (2010), EdgeStyle, Wolfram Language function, https://reference.wolfram.com/language/ref/EdgeStyle.html.
Text
Wolfram Research (2010), EdgeStyle, Wolfram Language function, https://reference.wolfram.com/language/ref/EdgeStyle.html.
Wolfram Research (2010), EdgeStyle, Wolfram Language function, https://reference.wolfram.com/language/ref/EdgeStyle.html.
CMS
Wolfram Language. 2010. "EdgeStyle." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/EdgeStyle.html.
Wolfram Language. 2010. "EdgeStyle." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/EdgeStyle.html.
APA
Wolfram Language. (2010). EdgeStyle. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/EdgeStyle.html
Wolfram Language. (2010). EdgeStyle. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/EdgeStyle.html
BibTeX
@misc{reference.wolfram_2025_edgestyle, author="Wolfram Research", title="{EdgeStyle}", year="2010", howpublished="\url{https://reference.wolfram.com/language/ref/EdgeStyle.html}", note=[Accessed: 31-May-2025
]}
BibLaTeX
@online{reference.wolfram_2025_edgestyle, organization={Wolfram Research}, title={EdgeStyle}, year={2010}, url={https://reference.wolfram.com/language/ref/EdgeStyle.html}, note=[Accessed: 31-May-2025
]}