Michael M.
asked 08/02/22Java Programming
Create an application that will build a diagragh. The user will be prompted for the graph elements using a loop.
- User will provide the number of nodes, N
- 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
- 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
- The data members of the "GraphNode" class will be as follows.
- pointNum "int"
- connectedNodes "vector of pointers/references" // this will be a vector to this "GraphNode" type; storing all adjacent nodes
- 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).
1 Expert Answer
Judy R. answered 01/22/23
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
Still looking for help? Get the right answer, fast.
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.
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 Thanks01/22/23