This example demonstrates computing a static force-directed layout that is bounded by the containing panel, as well as dynamic properties for nodes and links. The data set is the diamond tree used in other examples, with links between parents and their children. The layout is computed using 1,000 iterations.
Although the layout is static, this example is interactive. Using the point and unpoint events, we can highlight the active node and its tree ancestors.