LayeredGraph3D

LayeredGraph3D[g]

creates a graph with vertices and edges from the graph g represented as a 3D layered plot.

LayeredGraph3D[{e1,e2,}]

creates a graph with edges ej represented as a 3D layered plot.

LayeredGraph3D[{,w[ei],}]

creates a graph with edges ei with features defined by the symbolic wrapper w.

LayeredGraph3D[,vpos]

places the dominant vertex v in the plot at position pos.

Details and Options

Examples

open allclose all

Basic Examples  (5)

A 3D layered graph:

Create a 3D layered graph specified by edge rules:

Create a 3D layered graph specified by its adjacency matrix:

Create a 3D layered graph with different orientation from the default:

Place the dominant vertex in the graph at a position:

Scope  (9)

Graph Specification  (6)

Specify a 3D layered graph using a graph:

Create a 3D undirected layered graph using characters; enter the character as ue:

Create a 3D directed layered graph using characters; enter the character as de:

Specify a 3D layered graph using a rule list:

Specify a 3D layered graph using a dense adjacency matrix:

Specify a 3D layered graph using a sparse adjacency matrix:

Graph Styling  (3)

Give labels for some edges:

Give vertex labels:

Draw with different orientations:

Options  (9)

DataRange  (1)

Specify the range of vertex coordinates:

DirectedEdges  (2)

By default, a 3D directed layered graph is generated when giving a list of rules:

Use DirectedEdges->False to interpret rules as undirected edges:

GraphLayers  (2)

Draw each layer:

Draw the first and last layers:

GraphLayerStyle  (4)

Specify the overall style of layers:

Alternate between red and blue colors on layers:

Use gradient colors from ColorData:

Use indexed colors from ColorData:

Applications  (2)

A food chain:

The abstract proof network:

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

Text

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

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