clone

Contents

clone#

class brainstate.graph.clone(node)#

Deep-copy node via split/merge (shared references preserved).

Parameters:

node (Any) – The graph node to copy.

Returns:

A structurally identical copy with fresh State objects.

Return type:

Any