How should I represent a tree structure?
Context
I have data from a source that has categories and sub categories and in some cases, even sub-sub categories.
Requirements
The actions that can be performed on the tree elements are - addition of category/sub-category, renaming, ordering (asc/desc) and bucketing (putting different categories under one new category).
I'm stuck at trying to figure out the best way to represent such a structure. Should I represent it as a graphical tree? or should I let the user choose each element from dropdowns and provide a separate modal for editing the selected element?