Polyline drawings with topological constraints