more refinement of wed from plannar graph