Skip to content

DirectedEdge ​

A directed edge from u to v — the edge head Graph holds in its edge list.

✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram LanguageDirectedEdge✓
DirectedEdge(u, v)an edge FROM uu TO vv — FindShortestPath and GraphDistance only traverse it forward, from uu to vv.
Typed signatures
TypePackageApplies
(any, any) -> valuecombinatoricsalways

Domain: Collections

Details
  • Inert, like Graph itself — it holds exactly as written.
  • Wolfram prints this infix as u→vu \to v (u -> v); Epsil's own -> already means KeyValuePair (not this), so this round-trips through call-form syntax, DirectedEdge(u, v), which Wolfram accepts as equivalent input.

Examples

Basic #

An edge from 1 to 2

live ↗
InDirectedEdge(1,2)\mathrm{DirectedEdge}(1, 2)OutDirectedEdge(1,2)\mathrm{DirectedEdge}(1, 2)
About
Examples1
Checked againstWolfram Language 1 agree
CrosswalkWolfram Language

See also: UndirectedEdge, Graph