Fork of Interactive Force Directed Layout
✓ Published0🌍 Public
This example shows an interactive force-directed network layout where users can push and pull nodes around a continuously updating graph. The code uses the GoJS library’s `ForceDirectedLayout` with a custom `ContinuousForceDirectedLayout` subclass that keeps selected nodes fixed while repositioning all others. A `SelectionMoved` event and overridden `doMouseMove` method trigger layout invalidations during drags, and the layout network is cached for optimization. The diagram displays circular nodes with text labels connected by arrowed links, rendered in a web page using HTML and JavaScript.
AI-generated descriptionAn example showing the capabilities of VizHub.
MIT Licensed