Enable text based alternatives for graph display and drawing entry

Try Another Version of This Question

[Graphs generated by this script: setBorder(60,30,60,30);initPicture(-10,10,-10,10); fontsize=14;fontstyle='none';marker=null;line([10,0],[3.0901699437495,9.5105651629515]);line([10,0],[-8.0901699437495,5.8778525229247]);line([10,0],[-8.0901699437495,-5.8778525229247]);line([10,0],[3.0901699437495,-9.5105651629515]);line([3.0901699437495,9.5105651629515],[-8.0901699437495,5.8778525229247]);line([3.0901699437495,9.5105651629515],[-8.0901699437495,-5.8778525229247]);line([3.0901699437495,9.5105651629515],[3.0901699437495,-9.5105651629515]);line([-8.0901699437495,5.8778525229247],[-8.0901699437495,-5.8778525229247]);line([-8.0901699437495,5.8778525229247],[3.0901699437495,-9.5105651629515]);line([-8.0901699437495,-5.8778525229247],[3.0901699437495,-9.5105651629515]);fontbackground='white';fontfill='blue';text([10,0],'A','belowright');dot([10,0]);fontfill='red';text([6.5450849718747,4.7552825814758],'3');fontfill='red';text([0.95491502812526,2.9389262614624],'8');fontfill='red';text([0.95491502812526,-2.9389262614624],'15');fontfill='red';text([6.5450849718747,-4.7552825814758],'11');fontfill='blue';text([3.0901699437495,9.5105651629515],'B','aboveright');dot([3.0901699437495,9.5105651629515]);fontfill='red';text([-2.5,7.6942088429381],'7');fontfill='red';text([-2.5,1.8163563200134],'1');fontfill='red';text([3.0901699437495,0],'2');fontfill='blue';text([-8.0901699437495,5.8778525229247],'C','aboveleft');dot([-8.0901699437495,5.8778525229247]);fontfill='red';text([-8.0901699437495,1.7763568394003E-15],'10');fontfill='red';text([-2.5,-1.8163563200134],'6');fontfill='blue';text([-8.0901699437495,-5.8778525229247],'D','belowleft');dot([-8.0901699437495,-5.8778525229247]);fontfill='red';text([-2.5,-7.6942088429381],'9');fontfill='blue';text([3.0901699437495,-9.5105651629515],'E','belowright');dot([3.0901699437495,-9.5105651629515]);]

Apply the sorted edges algorithm to the graph above. Find the total cost of the resulting circuit.