Python Get Root Path Definition In Graph