We were trying to parallelize our build with dependency graph and topological sorting.
All our build logic is written in Msbuild and we are using powershell to call it.
Has any one implemented dependency graph and topological sorting using powershell?
I know that in unix there is a utility called tsort available. Is there any thing similar available in powershell?
This article gives good idea but it is done in C# "http://msdn.microsoft.com/en-us/magazine/dd569760.aspx"
I did a quick translation of Wikipedia's Topological Sort Algorithm:
This depends on
And you use it like this
Which yields: