SPeCS Packages Documentation
    Preparing search index...

    Utility class related with graph creation and manipulation.

    Current implementation uses Cytoscape.js (https://js.cytoscape.org/)

    Index

    Constructors

    Methods

    • Parameters

      • graph: Core
      • sourceNode: NodeSingular
      • targetNode: NodeSingular
      • edgeData: EdgeData | Record<string, unknown>

      Returns CollectionReturnValue

    • Parameters

      • node: NodeSingular
      • loopsAreLeafs: boolean = false

      Returns boolean

      True if the outdegree (number of edges with this node as source) is zero, false otherwise. By default, if a node has a connection to itself (loop) it is not considered a leaf

    • Removes a node from the graph. Before removing the node, creates connections between all connecting sources and targets.

      Parameters

      • graph: Core
      • node: NodeSingular
      • edgeMapper: (incoming: EdgeSingular, outgoing: EdgeSingular) => EdgeData

      Returns void