X418: Graphs - Add Edges (Adjacency Matrix)

You have created an adjacency matrix with enough space to store the distances between May Tricks' magic shops. Now it is time to enter the information:

  • The Downtown and Uptown locations are 23 miles appart.
  • The Uptown and Middletown locations are 14 miles appart.
  • The Downtown and Middletown locations are 27 miles appart.

    Using the above information edit the matrix accordingly. The coordinating array of locations is: [Downtown, Uptown, Middletown]

Your Answer:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.