In fact what I need is an quantlib example on how to decompose a credit spread curve from corporate bond curve like this graph attached
View entire thread