[xOut, yOut] = interconnections(x, y)
Given a set of x and y coordinates, this produces the matrix of x and y values needed to plot all interconnected lines by using plot(xOut, yOut).
[~, ~, h] = interconnections(x, y, true);
Draws all interconnected lines on the current axis and outputs the line object handles.
Adam Danz (2019). interconnections (https://www.mathworks.com/matlabcentral/fileexchange/73358-interconnections), MATLAB Central File Exchange. Retrieved .