Fork of Interactive Force Directed Layout
✓ Published0🌍 Public
This example demonstrates an interactive force-directed graph layout using the gojs library (yFiles for HTML). The visualization continuously re-runs a layout algorithm as users drag nodes, with selected nodes remaining fixed while all others are repositioned. The graph displays nodes as circles with text labels, connected by links featuring arrowheads and gradient-backed labels. The implementation extends `go.ForceDirectedLayout` with a `ContinuousForceDirectedLayout` subclass, optimizing performance by caching the network and only updating bounds for selected nodes during drag operations. The example also includes Node.js templates with binding for text content and custom link styling.
AI-generated descriptionAn example showing the capabilities of VizHub.
MIT Licensed