Enhanced SynthesizedGraph to compute edge positions to avoid overlaps