DirectedEdges

DirectedEdges

is an option for Graph, GraphPlot, and related functions that specifies whether edges should be taken to be directed.

Details

Examples

open allclose all

Basic Examples  (5)

By default rules are taken to be directed edges:

Specify undirected edges:

Obtain a CycleGraph with directed edges:

Create a directed graph from a symmetric adjacency matrix:

Show edges as arrows in GraphPlot:

Do not show edges as arrows in LayeredGraphPlot:

Scope  (5)

DirectedEdges is an option to special graph constructors including PathGraph:

CompleteGraph, GridGraph, and ButterflyGraph:

CycleGraph, StarGraph, and WheelGraph:

CompleteKaryTree and KaryTree:

DirectedEdges->True prevents AdjacencyGraph from creating undirected graphs:

WeightedAdjacencyGraph:

DirectedEdges works with RandomGraph and UniformGraphDistribution:

BernoulliGraphDistribution:

By default, edges are shown as lines in GraphPlot and TreePlot:

Show edges as arrows:

By default, edges are shown as arrows in LayeredGraphPlot:

This shows edges as lines:

Wolfram Research (2007), DirectedEdges, Wolfram Language function, https://reference.wolfram.com/language/ref/DirectedEdges.html.

Text

Wolfram Research (2007), DirectedEdges, Wolfram Language function, https://reference.wolfram.com/language/ref/DirectedEdges.html.

CMS

Wolfram Language. 2007. "DirectedEdges." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/DirectedEdges.html.

APA

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_directededges, organization={Wolfram Research}, title={DirectedEdges}, year={2007}, url={https://reference.wolfram.com/language/ref/DirectedEdges.html}, note=[Accessed: 21-December-2024 ]}