add tostring method to host pair and topology info