# Enumeration LayeredDigraphLayering

GoJS® Diagramming Components
version 3.0.7
by Northwoods Software®

This enumeration specifies how LayeredDigraphLayout.assignLayers assigns each node of the graph to a layer. Used for LayeredDigraphLayout.layeringOption.

`since`

3.0

#####
Index

### Enumeration Members

LongestPathSink
LongestPathSource
OptimalLinkLength

## Enumeration Members

### LongestPathSink

Assign layers using longest path sink layering, so that nodes are placed in the latest layer possible possibly resulting in longer links to nodes at the last/deepest layers.

### LongestPathSource

Assign layers using longest path source layering, so that nodes without any predecessors are placed in the first layer possibly resulting in longer links from nodes at the first/shallowest layers.

### OptimalLinkLength

Assign layers using optimal link length layering, so that links tend to cross the fewest number of layers.

Copyright © 1998-2024 by Northwoods Software Corporation.