3 ms·
"Regarding graphs: The best solution is option 3, using a crate on crates.io (petgraph is the most popular, but rust-forest is fine too)." Or, couldn't you hav
by mcguire 10y ago
"Regarding graphs: The best solution is option 3, using a crate on crates.io (petgraph is the most popular, but rust-forest is fine too)."
Or, couldn't you have a vec that owns the nodes and use indices instead of pointers? Or use pointers with the lifetime of the vec?
- pcwalton 10y agoYou could, but petgraph does that for you, so your life will be easier if you use petgraph :)