4 ms·
For a graph, I agree. For a tree with parent pointers, I'd absolutely use Rc, with Weak for the parent pointers.
by JoshTriplett 1y ago
For a graph, I agree.
For a tree with parent pointers, I'd absolutely use Rc, with Weak for the parent pointers.