Returns the width of each rank in the graph. #TODO

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