Java

TOPIC 25 – GRAPH DATA STRUCTURE

 

LESSON WORK

 

 

QUESTION 1

Create the following graph structure using the provided classes. All edges have a weight/cost of 1.  Output your graph using the toString method and double check the outputted String.

 

 

QUESTION 2?

If you don't listen in class, you will be expected to create this graph.

 

I hope you didn't have plans this weekend…   Or the next…

 

Image result for graph theory

 

 

Or the one after that…  J