Utility function to conditionally create a field with an enum constraint.
Create a simple graph model with optional constraints on node and relationship types.
Map the SimpleNode to the base Node.
Map the SimpleRelationship to the base Relationship.
Represents a graph document consisting of nodes and relationships.
Represents a node in a graph with associated properties.
Represents a directed relationship between two nodes in a graph.
Transform documents into graph-based documents using a LLM.
It allows specifying constraints on the types of nodes and relationships to include in the output graph. The class supports extracting properties for both nodes and relationships.