Relationship#

class langchain_neo4j.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