Link#
- class langchain_core.graph_vectorstores.links.Link(kind: str, direction: Literal['in', 'out', 'bidir'], tag: str)[source]#
Beta
This feature is in beta. It is actively being worked on, so the API may change.
A link to/from a tag of a given tag.
Edges exist from nodes with an outgoing link to nodes with a matching incoming link.
Attributes
Methods
__init__
(kind, direction, tag)bidir
(kind, tag)Create a bidirectional link.
incoming
(kind, tag)Create an incoming link.
outgoing
(kind, tag)Create an outgoing link.
- Parameters:
kind (str) –
direction (Literal['in', 'out', 'bidir']) –
tag (str) –
- __init__(kind: str, direction: Literal['in', 'out', 'bidir'], tag: str) None #
- Parameters:
kind (str) –
direction (Literal['in', 'out', 'bidir']) –
tag (str) –
- Return type:
None
- static bidir(kind: str, tag: str) Link [source]#
Create a bidirectional link.
- Parameters:
kind (str) –
tag (str) –
- Return type: