Sample for representing the relationship between various entities. Try dragging the nodes -- their links will avoid other nodes, by virtue of the Link,AvoidsNodes property assigned to the custom link template's Link.routing. Also note the use of Panel Expander Buttons to allow for expandable/collapsible node data.

Buttons are defined in Buttons.js.