This "friend star" demonstrates the use of ForceDirectedLayout.

GraphObject.mouseEnter and GraphObject.mouseLeave event handlers on the Node template highlight both the Node and all of the Links that connect with the Node. The same event handlers on the Links highlight that Link and both connected Nodes. Changes made in these event handlers automatically are not recorded in the UndoManager, although this sample does not enable the UndoManager anyway.