Question: visited [ 1 - - ] = 0 ; finished [ 1 - ] = 0 ; out 1 - - ; stage [ 1
visited ; finished ; out ; stage ;for to for to if out out ;for to if out then @visited i;for to if out out;for to if if visited if finished end; cycle;else gostage stagefinished
I need a simple c code which uses simple c functions and exact variable and function in the prevoious pseudo code that allows the user to input a graph then the graph will be print sorted as a topological sort please explain the code line by line
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
