GraphDocument#

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

Bases: Serializable

Represents a graph document consisting of nodes and relationships.

nodes#

A list of nodes in the graph.

Type:

List[Node]

relationships#

A list of relationships in the graph.

Type:

List[Relationship]

source#

The document from which the graph information is derived.

Type:

Document

param nodes: List[Node] [Required]#
param relationships: List[Relationship] [Required]#
param source: Document [Required]#

Examples using GraphDocument