Node Settings
Minimum Nodes
Maximum Nodes
Default Properties
Layer Spacing
Column Spacing
Cycle Remove
Direction
Layering
Initialize
Crossings
Pack and Align
Layered Digraph Builder
new go.LayeredDigraphLayout()

GoJS version 3.0.26. Copyright © 1998-2025 by Northwoods Software Corporation.

View this sample page's source on GitHub


GoJS Features in this sample

Collections

GoJS provides its own collection classes: List, Set, and Map. You can iterate over a collection by using an Iterator. More information can be found in the GoJS Intro.

Related samples


Layered Digraph Layout

This predefined layout is used for placing Nodes of a general directed graph in layers (rows or columns). This is more general than TreeLayout, as it does not require that the graph be tree-structured. More information can be found in the GoJS Intro.

Related samples


HTML Interaction

GoJS Diagrams can be used alongside other HTML elements in a webapp. For custom Text Editors, Context Menus, and ToolTips, which are invoked and hidden via GoJS tool operations, it is best to use the HTMLInfo class.

More information can be found in the GoJS Intro.

Related samples