Non crossing lines using PATH



Does any one worked with line creation using Path which does not overlap on some spquare boxes.

One library I came across is this, But i wonder there is any better which gives good facility to avoid some graphic object and give different kind of Paths (dotted, and dashed) according to overlapping ...


Best Regards..