Michael M.

asked • 08/02/22

Java Programming

Create an application that will build a diagragh. The user will be prompted for the graph elements using a loop. 

  1. User will provide the number of nodes, N
  2. User will provide the connectivity information (i.e., "whether edge exist between all combination of points", e.g., 2 to 4) stored in an N x N, 2-D array using an adjacency matrix representation
  3. Application will create the nodes and build the graph using information stored in the 2-D array (passed to "Graph" constructor).

The "Graph" class will be composed of a vector, V, of "GraphNode" objects

  1. The data members of the "GraphNode" class will be as follows.
  2. pointNum "int"
  3. connectedNodes "vector of pointers/references" // this will be a vector to this "GraphNode" type; storing all adjacent nodes
  4. The "addGraphNode" method will add a "GraphNode" object to the "GraphNode" vector, V. This method will also call "addAdjacentNode" to add the adjacent nodes (that information is in 2-D array).


Judy R.

Hello I am 22 years experienced Online Tutor and Assignment Helper for Computer Science and Math. I have been teaching IT Professionals, students from different grades, and Graduate and Post Graduate students for more than 22 years. I am ready to help you with your learning requirements, assignments, tests, and projects. For further discussion about the assignment or project help you need, please add me on skype and my skype id is nettuitions Thanks
Report

01/22/23

Judy R.

Hello I am 22 years experienced Online Tutor and Assignment Helper for Computer Science and Math. I have been teaching IT Professionals, students from different grades, and Graduate and Post Graduate students for more than 22 years. I am ready to help you with your learning requirements, assignments, tests, and projects. For further discussion about the assignment or project help you need, please add me on skype and my skype id is nettuitions Thanks
Report

01/22/23

1 Expert Answer

By:

Judy R. answered • 01/22/23

Tutor
New to Wyzant

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.