DirectedEdge

DirectedEdge[u,v] or uv

represents a directed edge from u to v.

DirectedEdge[u,v,t] or uv

represents a directed edge from u to v with tag t.

Details

  • DirectedEdge is also known as arc or directed link.
  • DirectedEdge[u,v] can be input as uv. The character is entered as de or \[DirectedEdge].
  • DirectedEdge[u,v,t] can be input as uv. An empty template can entered as tde, and moves the cursor to the overscript position.

Examples

open allclose all

Basic Examples  (4)

Build a graph with directed edges:

List of edges:

Use de to enter directly:

Style and label individual edges:

StandardForm formatting:

Scope  (5)

Use wrappers to specify edge properties, including style:

Labels:

Interactive behavior:

As well as new ones:

Use DirectedEdge 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:

Properties & Relations  (3)

Use DirectedEdge to construct directed graphs:

Tree graphs:

Path graphs:

Inside graph constructors, Rule[a,b] is converted to DirectedEdge[a,b]:

The adjacency matrix of a directed graph can be unsymmetric:

Wolfram Research (2010), DirectedEdge, Wolfram Language function, https://reference.wolfram.com/language/ref/DirectedEdge.html (updated 2020).

Text

Wolfram Research (2010), DirectedEdge, Wolfram Language function, https://reference.wolfram.com/language/ref/DirectedEdge.html (updated 2020).

CMS

Wolfram Language. 2010. "DirectedEdge." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/DirectedEdge.html.

APA

Wolfram Language. (2010). DirectedEdge. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DirectedEdge.html

BibTeX

@misc{reference.wolfram_2024_directededge, author="Wolfram Research", title="{DirectedEdge}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/DirectedEdge.html}", note=[Accessed: 14-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_directededge, organization={Wolfram Research}, title={DirectedEdge}, year={2020}, url={https://reference.wolfram.com/language/ref/DirectedEdge.html}, note=[Accessed: 14-December-2024 ]}