KnowledgeGraph.revert_decision()
Revert a decision: delete the DECISION node and its edges.
Usage
KnowledgeGraph.revert_decision(decision_id)Any entity/topic nodes that were only reachable through this decision (i.e., have no remaining edges after the decision’s edges are removed) are also deleted.
Parameters
decision_id: str- ID of the DECISION node to revert.
Returns
bool-
Trueif the decision existed and was reverted.
Examples
kg.revert_decision("decision_a1b2c3d4")