Q:

How to build complex dynamic hierarchy view (1-n & n-1)?

Does anyone know how to create a complex dynamic hierarchy treeview with ASP.NET or Silverlight or any other technology that can be viewed on a SharePoint page? 
We have records in our database connected to each other with keywords predecessor and successor. Now we want to have a visual overview of these records on the screen showing the hierarchy.
Example of what we want to create:

I have found many solutions for custom treeviews, charts, hierarchy views, .. but none of them could create our view dynamically.
EDIT: The boxes should be interactive and the sollution should support most common browser without installing software for the client. (If possible)
EDIT 2: The diagram will show all the courses (=box) for a training. Some courses are grouped in modules (=color) and for some courses, you have to succesfully passed one or more other courses.
Your help would be very appreciated.

A:

As the relationships are interconnected these are not actually hierarchies. You want a directed graph with custom user controls for the nodes.
Try these (most are open source or free):

Quickgraph
Graph Sharp (Graph#)
Node XL
Microsoft Automatic Graph Layout
GraphViz

