Ë
    7 |h  ã                  ó†   — d dl mZ d dlmZmZ d dlmZ d dlmZ d dl	m
Z
  G d„ de«      Z G d„ d	e«      Z G d
„ de«      Zy)é    )Úannotations)ÚListÚUnion)ÚDocument)ÚSerializable)ÚFieldc                  óF   — e Zd ZU dZded<   d Zded<    ee¬«      Zded<   y	)
ÚNodea,  Represents a node in a graph with associated properties.

    Attributes:
        id (Union[str, int]): A unique identifier for the node.
        type (str): The type or label of the node, default is "Node".
        properties (dict): Additional properties and metadata associated with the node.
    zUnion[str, int]ÚidÚstrÚtype©Údefault_factoryÚdictÚ
propertiesN)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú__annotations__r   r   r   r   © ó    úh/var/www/html/test/engine/venv/lib/python3.12/site-packages/langchain_community/graphs/graph_document.pyr
   r
   
   s(   … ñð 	ÓØ€Dˆ#ÓÙ¨TÔ2€JÔ2r   r
   c                  óL   — e Zd ZU dZded<   ded<   ded<    ee¬«      Zded	<   y
)ÚRelationshipaS  Represents a directed relationship between two nodes in a graph.

    Attributes:
        source (Node): The source node of the relationship.
        target (Node): The target node of the relationship.
        type (str): The type of the relationship.
        properties (dict): Additional properties associated with the relationship.
    r
   ÚsourceÚtargetr   r   r   r   r   N)r   r   r   r   r   r   r   r   r   r   r   r   r      s'   … ñð ƒLØƒLØ
ƒIÙ¨TÔ2€JÔ2r   r   c                  ó0   — e Zd ZU dZded<   ded<   ded<   y)	ÚGraphDocumenta9  Represents a graph document consisting of nodes and relationships.

    Attributes:
        nodes (List[Node]): A list of nodes in the graph.
        relationships (List[Relationship]): A list of relationships in the graph.
        source (Document): The document from which the graph information is derived.
    z
List[Node]ÚnodeszList[Relationship]Úrelationshipsr   r   N)r   r   r   r   r   r   r   r   r   r   (   s   … ñð ÓØ%Ó%ØÔr   r   N)Ú
__future__r   Útypingr   r   Úlangchain_core.documentsr   Ú langchain_core.load.serializabler   Úpydanticr   r
   r   r   r   r   r   ú<module>r'      s8   ðÝ "ç å -Ý 9Ý ô3ˆ<ô 3ô3<ô 3ô Lõ r   