code: def __init__(
      self,
      graph,
      walk_length,
      num_walks,
      p=1.0,
      q=1.0,
      workers=1,
      use_rejection_sampling=False,
  ):
      self.graph = graph
      self._embeddings = {}
      self.walker = RandomWalker(
          graph, p=p, q=q, use_rejection_sampling=use_rejection_sampling
      )
  
      print("Preprocess transition probs...")
      self.walker.preprocess_transition_probs()
  
      self.sentences = self.walker.simulate_walks(
          num_walks=num_walks,
          walk_length=walk_length,
          workers=workers,
          verbose=1,
      )
  
imports: from gensim.models import Word2Vec
  from ..walker import RandomWalker
label_desc: Use image node_id 1 to create a new Node2Vec object  with example: obj = Node2Vec(graph, walk_length, num_walks, p, q, workers, use_rejection_sampling)