langchain.graphs.hugegraph.HugeGraph¶
class langchain.graphs.hugegraph.HugeGraph(username: str = 'default', password: str = 'default', address: str = '127.0.0.1', port: int = 8081, graph: str = 'hugegraph')[source]¶
HugeGraph wrapper for graph operations
Create a new HugeGraph wrapper instance.
Attributes
get_schema
Returns the schema of the HugeGraph database
Methods
__init__([username, password, address, ...])
Create a new HugeGraph wrapper instance.
query(query)
refresh_schema()
Refreshes the HugeGraph schema information.
__init__(username: str = 'default', password: str = 'default', address: str = '127.0.0.1', port: int = 8081, graph: str = 'hugegraph') → None[source]¶
Create a new HugeGraph wrapper instance.
query(query: str) → List[Dict[str, Any]][source]¶
refresh_schema() → None[source]¶
Refreshes the HugeGraph schema information.
Examples using HugeGraph¶
HugeGraph QA Chain