class_docstr: Base class for exploring graphs.
class_docstr_tok: ["Base","class","for","exploring","graphs","."]
code: def __init__(self, graph, graph_schema=None, seed=None):
      self.graph = graph
  
      # Initialize the random state
      self._check_seed(seed)
      self._random_state, self._np_random_state = random_state(seed)
  
      # We require a StellarGraph for this
      if not isinstance(graph, StellarGraph):
          raise TypeError(
              "Graph must be a StellarGraph or StellarDiGraph."
          )
  
      if not graph_schema:
          self.graph_schema = self.graph.create_graph_schema()
      else:
          self.graph_schema = graph_schema
  
      if type(self.graph_schema) is not GraphSchema:
          self._raise_error(
              "The parameter graph_schema should be either None or of type GraphSchema."
          )
  
imports: import numpy
  import warnings
  from collections import defaultdict, deque
  from scipy import stats
  from scipy.special import softmax
  from ..core.schema import GraphSchema
  from ..core.graph import StellarGraph
  from ..core.utils import is_real_iterable
  from ..core.validation import require_integer_in_range, comma_sep
  from ..random import random_state
  from abc import ABC, abstractmethod
label_desc: Use image node_id 1 to create a new GraphWalk object from inherited base classes: object with example: obj = GraphWalk(graph, graph_schema, seed)