← Quit0 / 0 correct
How do you model a graph with cycles in Rust without Rc/RefCell?
nodes: Vec<Node> [0] A edges → [1, 2] [1] B edges → [2] [2] C edges → [0] (cycle ok)
How do you model a graph with cycles in Rust without Rc/RefCell?
nodes: Vec<Node> [0] A edges → [1, 2] [1] B edges → [2] [2] C edges → [0] (cycle ok)