Class GraphAnalysis<Nodes, GraphJSON>

Provides a wrapper around a headless cytoscape instance loaded with the given graph data and node Map.

A GraphAnalysis instance for the dependencies graph is passed into the postprocessor ProcessorFunction functions managed by PostProcess.

Type Parameters

  • Nodes

  • GraphJSON = any[]

Constructors

Accessors

Methods

Constructors

Accessors

  • get cytoscape(): Core
  • Returns Core

    The cytoscape core instance.

Methods

  • Perform a breadth first search of the graph.

    Parameters

    • visit: SearchVisitFunction

      A cytoscape search visit function.

    • Optional options: {
          directed?: boolean;
          type?: string | Set<string>;
      }

      Options.

      • Optional directed?: boolean

        A boolean indicating whether the algorithm should only go along edges from source to target.

      • Optional type?: string | Set<string>

        Specific type to retrieve.

    Returns void

  • Perform a depth first search of the graph.

    Parameters

    • visit: SearchVisitFunction

      A cytoscape search visit function.

    • Optional options: {
          directed?: boolean;
          type?: string | Set<string>;
      }

      Options.

      • Optional directed?: boolean

        A boolean indicating whether the algorithm should only go along edges from source to target.

      • Optional type?: string | Set<string>

        Specific type to retrieve.

    Returns void