Question: Q 2 . 1 8 marks : Graphs A travel agent uses a graph to arrange trips to his customers. A graph is constructed to
Q marks : Graphs
A travel agent uses a graph to arrange trips to his customers. A graph is constructed to define the connections between a number of cities vertices in the Arab Gulf region. The cities are: Abu Dhabi AD Mascot Mt Kuwait K Manama Mn Reyadh R Sanaa S and Doha D The connected roads edges are such that:
ADMtMtADADRRADDRRDMtRRMtSDDS
A marks Show how the above graph can be stored by constructing the:
marks adjacency list.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
