code: def rank_width(self):
          
          rank_width = defaultdict(int)
          node_rank = self.node_rank()
          for rank in node_rank.values():
              rank_width[rank] += 1
          return dict(rank_width)
docs: Returns the width of each rank in the graph. #TODO