Hacker News new | ask | show | jobs
by ForTheKidz 462 days ago
Graphs don't really capture the entirety of hashmaps and other indexing concerns. Other than that yea I agree.
1 comments

GP was talking about modelling your problem. A hashmap is seldom a good model for a given problem. Typically they're "just" an implementation detail.

For example, in some cases it can be useful to consider triangles in a 3D model as cyclic graphs of vertices. The edges of the triangle correspond to the edges in the graph.

However I can't think of any case where it's useful to think of a triangle as a hashmap.