code: def discretize_path(self, path):
          
          discrete = traversal.discretize_path(self.entities,
                                               self.vertices,
                                               path,
                                               scale=self.scale)
          return discrete
docs: Given a list of entities, return a list of connected points.
  
          Parameters
          -----------
          path: (n,) int, indexes of self.entities
  
          Returns
          -----------
          discrete: (m, dimension)