automatic layout of edge labels