Computing Algorithms Project
Computing Algorithms Project
Computing Algorithms Project
Algorithms
12th Week Project
• Done By :
Importing libraries ,
Defining & initializing
the graph class.
• 4. Add edges to the graph
• 5. Check if the graph is
connected
• 6. Check if the graph is acyclic
• 7. Performing Depth-First Search
(DFS):
8.Checking for Cycles using DFS:
9.Visualizing the Graph:
Main
function
4. Present and discuss different
inputs to showcase the
differences.
In that case the graph is acylic & connected.
1
2
In that case the graph is cyclic &
disconnected.
3
In that case the graph is acylic &
disconnected.
4
In that case the graph is Cyclic &
connected.
Conclusion