Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I have used graph algorithms a little bit at work. For example if you are generating code for a language like C where order of declaration matters, you can use a directed graph to represent dependencies between data types and then use a topological sort to order how you write structs to the header file.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: