The options for the force directed layout

interface ForceDirectedOptions {
    enableCytoscape?: boolean;
    intelWorkaround?: boolean;
}

Properties

enableCytoscape?: boolean

This option will be removed in a future release. For small datasets, use the d3Force layout instead. Whether to enable automatic switching to CoseBilkent layout for small graphs. When enabled, small graphs will automatically use the CoseBilkent layout algorithm which can provide better initial positioning for smaller datasets.

true
intelWorkaround?: boolean

Enables a workaround for Intel GPU compatibility issues in WebGL shader compilation. When enabled, this flag modifies how physics simulation shaders are compiled to avoid rendering problems on Intel graphics hardware.

Requires a restart of NVL as shaders need to be recompiled.