Question: (Cyclic Dependencies) In a C or C++ program, files miay be included using #include file.h. For example, if I put #include A.h into the file

(Cyclic Dependencies) In a C or C++ program, files miay be included using #include "file.h". For example, if I put #include "A.h" into the file B. h, then B.h depends on A.h. Clearly it would be problematic if A.h also depended on B.h, resulting in a cyclic dependency. At a high-level (you do not need to use pseudo-code), describe an algorithm that leverages graph theory to determine if a collection of files file_1 file_2, ..., file_n have a cyclic dependency
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
