Hacker News new | ask | show | jobs
by zeotroph 3292 days 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.

1 comments

It is only impossible​ using safe Rust. Unsafe code blocks should allow to represent this behind safe API.