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:

Introduced in 2010
 (8.0)
 |
Updated in 2020
 (12.1)