class_docstr: Meta class defining interface for graph partitioning algorithms.
class_docstr_tok: ["Meta","class","defining","interface","for","graph","partitioning","algorithms","."]
docstr: Initialise the AbstractGraphPartitioner.
  
  Parameters
  ----------
  data: GraphDataLoader
       Input data provided as a GraphDataLoader.
  k: int
       Number of partitions or buckets to split data into.
docstr_tok: ["Initialise","the","AbstractGraphPartitioner",".","Parameters","--","--","--","--","--","data",":","GraphDataLoader","Input","data","provided","as","a","GraphDataLoader",".","k",":","int","Number","of","partitions","or","buckets","to","split","data","into","."]
code: def __init__(self, data, k=2, seed=None, root_dir=None, **kwargs):
      """Initialise the AbstractGraphPartitioner.
  
      Parameters
      ----------
      data: GraphDataLoader
           Input data provided as a GraphDataLoader.
      k: int
           Number of partitions or buckets to split data into.
      """
      self.files = []
      self.partitions = []
      self._data = data
      self._k = k
      if root_dir is None:
          self.root_dir = tempfile.gettempdir()
      else:
          self.root_dir = root_dir
      self._split(seed=seed, batch_size=data.batch_size, **kwargs)
      self.reload()
  
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 1 to create a new AbstractGraphPartitioner object from inherited base classes: ABC with example: obj = AbstractGraphPartitioner(data, k, seed, root_dir)