3 ms·
A graph with the members first, next, and endpoints is not exactly self explanatory, something better than a "A compact graph representation" comment would be n
by zeotroph 9y ago
A graph with the members first, next, and endpoints is not exactly self explanatory, something better than a "A compact graph representation" comment would be nice.
Especially since the ownership model of rust makes the classic graph representation of edges owning nodes impossible.
- fpoling 9y agoIt is only impossible using safe Rust. Unsafe code blocks should allow to represent this behind safe API.