- Sync
- Async
Parameters
name(str): Name of the graph to retrievefolder_name(str | List[str], optional): Optional folder scope. Accepts canonical paths or a list of paths/names.folder_depth(int, optional): Folder scope depth.None/0= exact match,-1= include all descendants,n > 0= include descendants up tonlevels deep.end_user_id(str, optional): Optional end-user scope.
Returns
Graph: The requested graph object. If the graph is still building it will havesystem_metadata["status"] == "processing". Use the convenience helpersgraph.is_processing,graph.is_completed,graph.error, or the client-levelwait_for_graph_completion()to monitor progress.
Examples
- Sync
- Async
Graph Properties
The returnedGraph object has the following properties:
id(str): Unique graph identifiername(str): Graph nameentities(List[Entity]): List of entities in the graphrelationships(List[Relationship]): List of relationships in the graphmetadata(Dict[str, Any]): Graph metadatadocument_ids(List[str]): Source document IDsfilters(Dict[str, Any], optional): Document filters used to create the graphcreated_at(datetime): Creation timestampupdated_at(datetime): Last update timestampowner(Dict[str, str]): Graph owner informationfolder_path(Optional[str]): Canonical folder path for the graph (if scoped)
Entity Properties
EachEntity object has the following properties:
id(str): Unique entity identifierlabel(str): Display label for the entitytype(str): Entity typeproperties(Dict[str, Any]): Entity propertiesdocument_ids(List[str]): Source document IDschunk_sources(Dict[str, List[int]]): Source chunk numbers by document ID
Relationship Properties
EachRelationship object has the following properties:
id(str): Unique relationship identifiersource_id(str): Source entity IDtarget_id(str): Target entity IDtype(str): Relationship typedocument_ids(List[str]): Source document IDschunk_sources(Dict[str, List[int]]): Source chunk numbers by document ID

