Write a program to decide if a graph has a cycle or not. The given graph can be a directed or undire
Write a program to decide if a graph has a cycle or not. The given graph can be a directed or undirected graph, which is indicated at the time of read...