<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def height(self):
 """ Number of edges on the longest path to a leaf `Node`. 2 1 0 """

        if self.__children_:
            return max([child.height for child in self.__children_]) + 1
        else:
            return 0