code: def get_weights_of_nn_sites(self, structure, n):
          
  
          return [e['weight'] for e in self.get_nn_info(structure, n)]
docs: Get weight associated with each near neighbor of site with
          index n in structure.
  
          Args:
              structure (Structure): input structure.
              n (integer): index of site for which to determine the weights.
          Returns:
              weights (list of floats): near-neighbor weights.