Function runCached

  • Cached version of run.

    Parameters

    • cy: Core

      the Cytoscape.js graph to run the layout on

    • layoutConfig: LayoutOptions

      the layout configuration, which includes the layout name and options

    • subs: string[]

      Set of subontologies. If the subs are not given the layout still works but it is not cached.

    • separateColours: boolean = false

      Whether to separate the graph based on its colours.

    Returns Promise<boolean>

    whether the layout could successfully be applied. Does not indicate success of loading from cache, in which case it is calculated anew.