Showing content from https://api.js.langchain.com/classes/_langchain_core.runnables_graph.Graph.html below:
Graph | LangChain.js
Index Constructors Properties Methods Constructors constructor
- new Graph(params?): Graph
- Parameters
Optional
params: {
edges: Edge[];
nodes: Record<string, Node>;
}
- edges: Edge[]
- nodes: Record<string, Node>
Returns Graph
Properties edges
nodes nodes: Record<string, Node> = {}
Methods addEdge
- addEdge(source, target, data?, conditional?): Edge
- Parameters
- source: Node
- target: Node
Optional
data: string
Optional
conditional: boolean
Returns Edge
addNode
- addNode(data, id?, metadata?): Node
- Returns Node
drawMermaid
- drawMermaid(params?): string
- Parameters
Optional
params: {
curveStyle?: string;
nodeColors?: Record<string, string>;
withStyles?: boolean;
wrapLabelNWords?: number;
}
Optional
curveStyle?: string
Optional
nodeColors?: Record<string, string>
Optional
withStyles?: boolean
Optional
wrapLabelNWords?: number
Returns string
drawMermaidPng
- drawMermaidPng(params?): Promise<Blob>
- Parameters
Optional
params: {
backgroundColor?: string;
curveStyle?: string;
nodeColors?: Record<string, string>;
withStyles?: boolean;
wrapLabelNWords?: number;
}
Optional
backgroundColor?: string
Optional
curveStyle?: string
Optional
nodeColors?: Record<string, string>
Optional
withStyles?: boolean
Optional
wrapLabelNWords?: number
Returns Promise<Blob>
extend
firstNode
- firstNode(): undefined | Node
- Returns undefined | Node
lastNode
- lastNode(): undefined | Node
- Returns undefined | Node
reid
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
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4