Force - Performance Mode Test
Performance Test with Force Layout
Demonstrates performance testing using force-directed layout with large datasets to test rendering capabilities.
Performance Test with Force Layout
Functional Overview
This example demonstrates performance testing with a force-directed layout algorithm using a large number of nodes and lines to test rendering performance.
Implementation of Key Features
Force Layout Configuration
const graphOptions: RGOptions = {
layout: {
layoutName: 'force',
maxLayoutTimes: Number.MAX_SAFE_INTEGER
}
};
Large Dataset Handling
Renders a large number of nodes and connections to test performance limits.
Continuous Layout Optimization
Uses maximum layout iterations for optimal node positioning.
Creative Use Cases
Social Network Analysis: Test performance with large social networks. Thousands of users and connections.
Data Visualization Benchmarks: Benchmark graph rendering performance. Compare different datasets.
Network Simulation: Simulate large-scale networks. Test visualization capabilities.
Biological Networks: Visualize large biological interaction networks. Protein-protein interactions.
Citation Networks: Display academic citation networks. Paper and author relationships.
Web Graphs: Visualize website link structures. Page and link relationships.
Transaction Networks: Display financial transaction networks. Account and transfer relationships.
Communication Networks: Visualize email or communication networks. Person and message relationships.