Skip to main content

Module graph

Module graph 

Source
Expand description

Rc<RefCell<T>> graph reification and reconstruction.

Modules§

arc
Arc-pointer graph reification, parallel to the Rc<RefCell<T>> API.

Structs§

NodeId
A stable node identifier derived from pointer identity.
ReifiedGraph
An adjacency-list representation of a pointer graph.

Functions§

collect_nodes
Collect all reachable nodes from root, detecting shared pointers.
node_id_of
Extract a NodeId from an Rc<RefCell<T>> using pointer identity.
reflect_graph
Reconstruct an Rc<RefCell<T>> graph from a ReifiedGraph.
reify_graph
Reify an Rc<RefCell<T>> graph into a ReifiedGraph.