CLIM-FORMAT-GRAPH-FROM-ROOTS is like FORMAT-GRAPH-FROM-ROOT (which calls it) but can take several root nodes. It has a :MERGE-DUPLICATES keyword option which will do what you want.