Added graph clearing code
Adapted old synteny generation code