Question: Obiectives: Understand the implementation of the Graph using adjacency list and traverse it using depth first search algorithm Theory: - Please revise Graphs and Singly
Obiectives: Understand the implementation of the Graph using adjacency list and traverse it using depth first search algorithm Theory: - Please revise "Graphs" and "Singly linked List" slides. Required Task: + Problem Statement Create class named Graph that contains a pointer to the dynamically allocated array of singly linked list, integer number of vertices and the following functionalitiest constructor Allocate and initialize the adjacency list .addEdge: Add an edge between the passed vertices. deleteEdge: Delete the edge between the passed vertices. depthFirstSearchTraverse the vertices in depth first search order. * Implementation Start your main program as follows: Create an object of type Graph, Create a menu of Graph functionalities
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
