WingNews logo WingNews
top | new | best | ask | show | jobs
top | item 46676277

(no title)

michalsustr | 1 month ago

Each struct and its referenced fields can be thought of as a graph which can be sorted. Ideally, it is a DAG, but sometimes you can have recursive structures so it can be a cyclic graph. By DAG-ordering a I meant a topological sorting such that you do it by layers of the graph.

https://en.wikipedia.org/wiki/Topological_sorting

https://en.wikipedia.org/wiki/Directed_acyclic_graph

discuss

order

No comments yet.

powered by hn/api // news.ycombinator.com