Created
June 13, 2018 04:26
-
-
Save IuryAlves/b8718fc16f50916e55b506fd7f9b1a5b to your computer and use it in GitHub Desktop.
Revisions
-
iury created this gist
Jun 13, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ def get_depth(self): parent = self.parent depth = 0 while parent is not None: parent = parent.parent depth += 1 return depth # coloca isso na classe Link