cell x {
    box x, y, v, z;
    y,z [ymiddle=x@top];
    top x v;
   #x->z [routing.order=1];
    x->z[color=red, distance=y@10];
   #x->v [color=blue, distance=y@10];
}
below cell y {
    box x, y, v, z;
    y,z [ymiddle=x@top];
    top x v;
   #x->z [routing.order=1];
    x->z[color=red, distance=y@10];
    x->v [color=blue, distance=y@10];
}
below cell z {
    box x, y, v, z;
    y,z [ymiddle=x@top];
    top x v;
    x->z [routing.order=1];
    x->z[color=red, distance=y@10];
    x->v [color=blue, distance=y@10];
}
