Non crossing lines using PATH

Hey,

 

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 ...

http://www.adaptagrams.org/documentation/libavoid.html

 

Best Regards..

ACN