Critical path algorithm required

Any one please give me the c or c++ implemenaton of critical path algorithm.

I hope this will help - LINK