Using Graphs To Solve Simultaneous Equations Matlab