refactor of drawEdges to create reusable utilities (e.g. drawEdge.styleLine) across app