You can't edit from the compact tree view. You will need to click on the profile that needs editing, and edit from the profile page.
If there are details or relationships that need changing you can fix them there.
The compact tree view itself is not the clearest layout , so ake sure there is actually an issue with how to the profiles are liked to each other, and not just a problem with the layout