getProofLineage
@totemsdk/proofgraph / getProofLineage
Function: getProofLineage()
getProofLineage(
graph,proofId,_visited?):ProofGraphNode[]
Recursively traverse 'derived_from' edges from a proof node. Returns the ordered chain of ancestor proof nodes (closest ancestor first). Terminates on cycle detection.
Parameters
graph
proofId
string
_visited?
Set<string> = ...