def rank_width(self):
rank_width = defaultdict(int)<EOL>node_rank = self.node_rank()<EOL>for rank in list(node_rank.values()):<EOL><INDENT>rank_width[rank] += <NUM_LIT:1><EOL><DEDENT>return dict(rank_width)<EOL>
Returns the width of each rank in the graph. #TODO