def node_width(self):
nodes = self.postorder()<EOL>node_width = {}<EOL>for node in nodes:<EOL><INDENT>sum_width = <NUM_LIT:0><EOL>for child in self[node].nodes():<EOL><INDENT>sum_width += node_width[child]<EOL><DEDENT>node_width[node] = (sum_width or <NUM_LIT:1>)<EOL><DEDENT>return node_width<EOL>
Returns the width of each node in the graph. #TODO