Connected Subnetwork Layout Switcher
This example shows how to click a node, detect its connected subnetwork, and relayout only that group inside a shared relation-graph canvas. It combines four preset layouts, selection-scoped editing controls, a minimap, and a floating helper window while keeping other disconnected graph islands loaded.
Switching Layouts for a Selected Connected Subnetwork
What This Example Builds
This example builds a single relation-graph canvas that contains two disconnected graph islands and lets the user relayout only the island around the currently clicked node. The screen combines the main graph, a minimap, a floating helper window, and a small preset selector that appears over the active editing group.
The main behavior is selection-scoped relayout. Instead of switching the layout for the whole