I Tried to Build a Graph in Rust. Rc and RefCell Were Waiting for Me.

How Rust’s ownership model pushes you toward index-based graph design