MathWorks interview question

Graph implementation.