drawEdge task