Tightens up the code that sets the edge endpoint attributes.