Hi,

Override **LayeredDigraphLayout.NodeMinLayerSpace** to control how much space a given node/vertex takes.

Here’s the default definition:

```
protected virtual double NodeMinLayerSpace(LayeredDigraphVertex v, bool topleft) {
if (v.Node == null) return 0;
Rect r = v.Bounds;
Point p = v.Focus;
if (this.Direction == 90 || this.Direction == 270) {
if (topleft)
return p.Y+10;
else
return r.Height-p.Y+10;
} else {
if (topleft)
return p.X+10;
else
return r.Width-p.X+10;
}
}
```

If you set also set **LayerSpacing** to zero, you can completely control how much space is taken by each node, on each side of the node.

Thanks for your fast reply.

return spacingwanted;

else

return 0;

That depends on where the Node.Location is in each of your nodes and whether they are different sizes. Try it and decide for yourself.