Constructors
 Properties
nodes
nodes: Record<string, Node> = {}  Methods
addEdge
- addEdge(source, target, data?, conditional?): Edge
 Parameters
- source: Node
 - target: Node
 Optionaldata: stringOptionalconditional: boolean
drawMermaid
- drawMermaid(params?): string
 Parameters
Optionalparams: { 
    curveStyle?: string; 
    nodeColors?: Record<string, string>; 
    withStyles?: boolean; 
    wrapLabelNWords?: number; 
}OptionalcurveStyle?: string
OptionalnodeColors?: Record<string, string>
OptionalwithStyles?: boolean
OptionalwrapLabelNWords?: number
Returns string
drawMermaidPng
- drawMermaidPng(params?): Promise<Blob>
 Parameters
Optionalparams: { 
    backgroundColor?: string; 
    curveStyle?: string; 
    nodeColors?: Record<string, string>; 
    withStyles?: boolean; 
    wrapLabelNWords?: number; 
}OptionalbackgroundColor?: string
OptionalcurveStyle?: string
OptionalnodeColors?: Record<string, string>
OptionalwithStyles?: boolean
OptionalwrapLabelNWords?: number
Returns Promise<Blob>
firstNode
- firstNode(): undefined | Node
 Returns undefined | Node
lastNode
- lastNode(): undefined | Node
 Returns undefined | Node
removeNode
- removeNode(node): void
 Returns void
toJSON
- toJSON(): Record<string, any>
 Returns Record<string, any>
trimFirstNode
- trimFirstNode(): void
 Returns void
trimLastNode
- trimLastNode(): void
 Returns void
Add all nodes and edges from another graph. Note this doesn't check for duplicates, nor does it connect the graphs.