Question: I need to create a function that opens and reads in each line of a text file and generates a graph based on a text

I need to create a function that opens and reads in each line of a text file and generates a graph based on a text file that has a node array in it

for example, the array would be

1 2 3 (node 1 is connected to node 2 and 3) 2 1 5 6 7 (node 2 is connected to node 1,5,6, and 7) 3 1 (node 3 is connected to node 1) 4 5 6 7 (node 4 is connted to node 5,6,and 7) 5 2 4 6 (node 5 is connected to node 2,4, and 6) 6 2 4 5 7 (node 6 is connected to node 2,4,5, and 7) 7 2 4 6 (node 7 is connected to node 2,4, and 6)

And this must be programmed in c++ as well as linklist must be used

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!