get tree view from a dictionary with anytree lib

I read the manual from https://anytree.readthedocs.io/en/latest/#, but I didn’t figure out how to translate a dictionary to tree view, anyone can help? data = { ‘Marc’: ‘Udo’, ‘Lian’: ‘Marc’, ‘Dan’: ‘Udo’, ‘Jet’: ‘Dan’, ‘Jan’: ‘Dan’, ‘Joe’: ‘Dan’, } output is Udo ├── Marc │ └── Lian └── Dan ├── Jet ├── Jan └── Joe >Solution… Read More get tree view from a dictionary with anytree lib