Question: IN C LANGUAGE PLS 1. Write a program to perform a topological sort on a graph (Note: you may choose the graph on page 32

 IN C LANGUAGE PLS 1. Write a program to perform a

IN C LANGUAGE PLS

1. Write a program to perform a topological sort on a graph (Note: you may choose the graph on page 32 in DSA2021_12 as input) a) Implement with adjacency list. b) Implement the routines, e.g., InitializeGraph(), InsertEdge(), InDegree(), OutDegree(), etc. c) Store the graph information in a text file; d) Implement a ReadGraph() routine to call InitializeGraph() and InsertEdge() to construct the graph in memory. e) Output the topological sort result to screen

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!