Dot to .dot implementation + polygons anchors