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.
Abstract class for graph operations.
Gremlin wrapper for graph operations.
Parameters: url (Optional[str]): The URL of the Gremlin database server or env GREMLIN_URI username (Optional[str]): The collection-identifier like '/dbs/database/colls/graph' or env GREMLIN_USERNAME if none provided password (Optional[str]): The connection-key for database authentication or env GREMLIN_PASSWORD if none provided traversal_source (str): The traversal source to use for queries. Defaults to 'g'. message_serializer (Optional[Any]): The message serializer to use for requests. Defaults to serializer.GraphSONSerializersV2d0() include_edge_properties (bool): Whether to include edge properties in the gremlin graph schema. Defaults to False Security note: Make sure that the database connection uses credentials that are narrowly-scoped to only include necessary permissions. Failure to do so may result in data corruption or loss, since the calling code may attempt commands that would result in deletion, mutation of data if appropriately prompted or reading sensitive data if such data is present in the database. The best way to guard against such negative outcomes is to (as appropriate) limit the permissions granted to the credentials used with this tool.
See https://python.langchain.com/docs/security for more information.
Implementation details: The Gremlin queries are designed to work with Azure CosmosDB limitations