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:

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
Get step-by-step solutions from verified subject matter experts
