This is our internal graph representation that we use to performa transformations on

Hierarchy

  • Graph

Constructors

Properties

edges: Record<string, Edge<any>>
nodes: Record<string, Node<any>>
out: Record<string, Record<string, Edge<any>>>

Outgoing edges from a node. This is used to track when there are multiple edges between the same nodes eg out['a']['a→b:namedEdge']

successorNodes: Record<string, string[]>

Outgoing edges from a node as an array of edgeIds

Methods

  • Return all edges that are pointed out by node v.

    Parameters

    • node: string

    Returns Edge<any>[]

  • Parameters

    • id: string
    • source: string
    • target: string
    • sourceHandle: string
    • targetHandle: string
    • opts: EdgeOpts = {}

    Returns void

  • Parameters

    • id: string
    • type: string
    • data: any = undefined

    Returns void

  • Returns the ids of the node that are successors of the given node

    Parameters

    • nodeId: any

    Returns string[]

Generated using TypeDoc