Skip to content

LayeredGraphPlot ​

Wolfram's own LayeredGraphPlot, held inert -- the expression is what a worksheet or REPL draws, not something this library computes (see @enumeratio/formats/src/graphics.ts).

Wolfram LanguageLayeredGraphPlot
LayeredGraphPlot(...)Wolfram's own LayeredGraphPlot, held inert -- the expression is what a worksheet or REPL draws, not something this library computes (see @enumeratio/formats/src/graphics.ts).
Typed signatures
TypePackageApplies
(any*) -> anyformatsalways

Domain: Graphics·Drawn as Graphics

Examples

Basic #

A DAG laid out top to bottom by longest-path layer

live ↗
InLayeredGraphPlot({edges→[List,[List,’a’,’b’],[List,’a’,’c’],[List,’b’,’d’]]})\mathrm{LayeredGraphPlot}(\left\lbrace \text{edges}→\bigl\lbrack\text{List}, \bigl\lbrack\text{List}, \text{'a'}, \text{'b'}\bigr\rbrack, \bigl\lbrack\text{List}, \text{'a'}, \text{'c'}\bigr\rbrack, \bigl\lbrack\text{List}, \text{'b'}, \text{'d'}\bigr\rbrack\bigr\rbrack\right\rbrace)OutLayeredGraphPlot({edges→[[a,b],[a,c],[b,d]]})\mathrm{LayeredGraphPlot}(\left\lbrace \text{edges}→\bigl\lbrack\bigl\lbrack\text{a}, \text{b}\bigr\rbrack, \bigl\lbrack\text{a}, \text{c}\bigr\rbrack, \bigl\lbrack\text{b}, \text{d}\bigr\rbrack\bigr\rbrack\right\rbrace)
About
Examples1
CrosswalkWolfram Language