modified modifiedMST.py to print distSum but not draw a line