Relationship#

class langchain_community.graphs.graph_document.Relationship[source]#

Bases: Serializable

Represents a directed relationship between two nodes in a graph.

source#

The source node of the relationship.

Type:

Node

target#

The target node of the relationship.

Type:

Node

type#

The type of the relationship.

Type:

str

properties#

Additional properties associated with the relationship.

Type:

dict

param properties: dict [Optional]#
param source: Node [Required]#
param target: Node [Required]#
param type: str [Required]#

Examples using Relationship