Question
Asked by:
ryan36870
ryan36870
Rating : No Rating
Questions Asked: 2
Tutorials Posted: 0
 

$25.00 Graphs in C++

Q:
Write a program that reads and stores the names of persons and the names of job positions in the vertices of a graph. Two vertices will be connected if one of them represents a person and the other a job position for which that person is qualified. The program should allow the user to specify one of the following options:

* Insert (a) a new applicant or (b) a new job position into the graph.
* Delete (a) an applicant or (be a job position from the graph.
* List all persons qualified for a specified job position.
* List all job positions for which a specified person is qualified.

You will need to develop the following functions to make this work:

* Insert a new vertex, given a specification of all vertices adjacent to it.
* Search the graph for a vertex that stores a given data item and retrieve information about that item and/or update the information.
* Delete a vertex containing a given data item and all edges incident to it.
* Find all vertices adjacent to a given vertex.
 


   
   
   
   
 
Available Tutorials to this Question
Posted by:
rainman
rainman
Rating (40): A+
Questions Asked: 2
Tutorials Posted: 174, earned $906.64
 

$30.00 C++ Graph Tutorial, Menu Driven, Does Everything Asked, Compiled (With DevCpp & MS VS C++), Tested, Commented.

  • This tutorial was purchased 2 times and hasn't been rated yet.
  • Posted on Mar 02, 2009 at 11:22:51PM
A:
Preview: ... ut << "1. Add an applicant and enter which job they qualify for." << endl;<br> cout << "2. Add a new job position." << endl;<br> cout << "3. Delete an applicant." << endl;<br> cout << "4. Delete a position." << endl;<br> cout << "5. List all persons qualified for a specified job position." << endl;<br> cout << "6. List all job positions for which a specified person is qualified." << endl;<br> cout << "7. Show the entire graph." << endl;<br> cout << "0. Exit the program" << endl;<br ...

The full tutorial is about 943 words long plus attachments.

Attachments:
Graphs.zip (3K)
Sample Run.txt (5K) (Preview)
   
Join Now or Log In
Get Tutoring
Get Paid
Academic Honesty