class_docstr: Meta class defining interface for graph partitioning algorithms.
class_docstr_tok: ["Meta","class","defining","interface","for","graph","partitioning","algorithms","."]
docstr: Remove the temporary files created for the partitions.
docstr_tok: ["Remove","the","temporary","files","created","for","the","partitions","."]
code: def clean(self):
      """Remove the temporary files created for the partitions."""
      for partition in self.partitions:
          partition.clean()
      for f in self.files:
          if f.split(".")[-1] != "shf":
              os.remove(f)
          else:
              try:
                  os.remove(f + ".bak")
                  os.remove(f + ".dir")
                  os.remove(f + ".dat")
              except Exception:
                  if os.path.exists(f + ".db"):
                      os.remove(f + ".db")
  
imports: import logging
  import os
  import shelve
  import tempfile
  from abc import ABC
  from datetime import datetime
  import numpy
  from ampligraph.utils.profiling import timing_and_memory
  from .graph_data_loader import GraphDataLoader
label_desc: Use image node_id 10 for calling the AbstractGraphPartitioner obj's underlying member method code with example usage: obj.clean() without return types