editing problemGraphWriter to dump segmentPair details