add method to unpersist graph