The Layered Digraph Layout sample demonstrates organizing nodes into layers. Unlike TreeLayout, LayeredDigraphLayout understands about multiple links coming into a node and about cycles in the graph.

Modifying one of the properties will automatically perform another layout using the new property value, because the values of the LayeredDigraphLayout properties are data-bound to the controls in the sample.

The LayerSpacing property controls the distance between the layers of nodes. The ColumnSpacing property controls the distance between adjacent nodes in the same layer.