Network | Basic usage
✓ Published0🌍 Public
FFrissAnalytics
Last edited Mar 2, 2016
Created on Mar 2, 2016
This example demonstrates a basic network graph with five labeled nodes and four edges, where a short animation moves the nodes from a central starting point to their original precomputed positions. Using the vis.js library, it initializes a `vis.Network` with a `vis.DataSet` for nodes and edges, disables physics, and then retrieves node positions with `network.getPositions()`. A `setInterval` timer iterates through steps, computing convex combinations of start and target coordinates to call `network.moveNode()` for each node, creating a smooth transition over 500 milliseconds.
AI-generated description