cleaning up backbone graph