Graphs And Trees In Python