simplify graphs using clans