For a simple tree, you can use the standard tree control of your GUI environment (Win32 API, Gtk, Qt, whatever). If you need this to be cross-plaform, you can use wxWidgets or Qt.
If you're looking for something more general, check out GraphViz .
source share