prolog output format: small reformatting of secondary edge output