r/GraphicsProgramming • u/leseiden • Jul 26 '20
With all this talk of directed graphs.
I spent a couple of hours banging together a simple directed graph template in C++.
It's pretty bare bones and probably quite buggy & inefficient but it has functions for the following:
- Construction (performs topological sort)
- Search for parent and child nodes
- Search for sibling nodes (core component of the static analyser mentioned in the resource tagging thread)
- Schedule potential jobs given a set of completed tasks.
It was written in one sitting so there may be some nasties but the basic tests pass and there are no warnings. I aim to give it a cleanup pass, readme and license later. It will be MIT.
0
Upvotes