factor_agent.gate.graph.Graph.fingerprint#

Graph.fingerprint()[source]#

Return the SHA-256 of the canonical graph.

Two graphs that differ only by the operand order of a commutative operator, by constant subexpressions that fold to the same value, or by a repeated subexpression get the same fingerprint.