v0.2
v0.1
Preparing search index...
The search index is not available
LangChain.js - v0.2.8
LangChain.js
langchain-core/runnables/graph
Graph
Class Graph
Index
Constructors
constructor
Properties
edges
nodes
Methods
add
Edge
add
Node
draw
Mermaid
draw
Mermaid
Png
extend
first
Node
last
Node
remove
Node
toJSON
trim
First
Node
trim
Last
Node
Constructors
constructor
new
Graph
(
)
:
Graph
Returns
Graph
Properties
edges
edges
:
Edge
[]
= []
nodes
nodes
:
Record
<
string
,
Node
>
= {}
Methods
add
Edge
add
Edge
(
source
,
target
,
data
?
)
:
Edge
Parameters
source
:
Node
target
:
Node
Optional
data
:
string
Returns
Edge
add
Node
add
Node
(
data
,
id
?
)
:
Node
Parameters
data
:
RunnableInterface
<
any
,
any
,
RunnableConfig
>
|
RunnableIOSchema
Optional
id
:
string
Returns
Node
draw
Mermaid
draw
Mermaid
(
params
?
)
:
string
Parameters
Optional
params
:
{
curveStyle
?:
string
;
nodeColors
?:
Record
<
string
,
string
>
;
withStyles
?:
boolean
;
wrapLabelNWords
?:
number
;
}
Optional
curve
Style
?:
string
Optional
node
Colors
?:
Record
<
string
,
string
>
Optional
with
Styles
?:
boolean
Optional
wrap
LabelNWords
?:
number
Returns
string
draw
Mermaid
Png
draw
Mermaid
Png
(
params
?
)
:
Promise
<
Blob
>
Parameters
Optional
params
:
{
backgroundColor
?:
string
;
curveStyle
?:
string
;
nodeColors
?:
Record
<
string
,
string
>
;
withStyles
?:
boolean
;
wrapLabelNWords
?:
number
;
}
Optional
background
Color
?:
string
Optional
curve
Style
?:
string
Optional
node
Colors
?:
Record
<
string
,
string
>
Optional
with
Styles
?:
boolean
Optional
wrap
LabelNWords
?:
number
Returns
Promise
<
Blob
>
extend
extend
(
graph
)
:
void
Parameters
graph
:
Graph
Returns
void
first
Node
first
Node
(
)
:
undefined
|
Node
Returns
undefined
|
Node
last
Node
last
Node
(
)
:
undefined
|
Node
Returns
undefined
|
Node
remove
Node
remove
Node
(
node
)
:
void
Parameters
node
:
Node
Returns
void
toJSON
toJSON
(
)
:
Record
<
string
,
any
>
Returns
Record
<
string
,
any
>
trim
First
Node
trim
First
Node
(
)
:
void
Returns
void
trim
Last
Node
trim
Last
Node
(
)
:
void
Returns
void
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
edges
nodes
Methods
add
Edge
add
Node
draw
Mermaid
draw
Mermaid
Png
extend
first
Node
last
Node
remove
Node
toJSON
trim
First
Node
trim
Last
Node
LangChain.js - v0.2.8
Loading...