Question: THIS IS GNU OCTAVE QUESTION: Only GNU Octave. 3. Write a function that takes an incidence matrix representation of a graph, which may not be

THIS IS GNU OCTAVE QUESTION:

THIS IS GNU OCTAVE QUESTION: Only GNU Octave. 3. Write a function

Only GNU Octave.

3. Write a function that takes an incidence matrix representation of a graph, which may not be simple, and returns the incidence matrix representation of the corresponding simple graph which is obtained by removing loops and extra parallel edges from it. Example: Input matrix: 1 0 0 0 1 0 0 1 0 1 111 0 0 0 0 0 1 0 0 0 1 1 0 0 0 0 0 0 000 11 1 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 OOOO 1 0 1 Output matrix: 1 0 0 1 0 1 0 11 0 0 0 0 1 0 1 1 0 0 0 0 0 1 1 0 1 0 0 0 0 1 1 0 0 0 0 0 0 0 1 OOO ALSO TEST YOUR FUNCTION WITH THE "Input matrix above (the result should be the "Output matrix" above) and take a screenshot of your OCTAVE, MATLAB or OCTAVE ONLINE screen and include it in your answer. NO SCREENSHOT = 0 marks for this

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!