build the dot file using several traces