MathProblemsBank

6.4.25 Graph theory

Problem: A weighted graph is defined by a matrix of arc lengths. Plot the graph. Find: a) the minimum weight spanning tree; b) the shortest distance from vertex \( v_{6} \) to the remaining vertices of the graph, using Dijkstra's algorithm. \[ \left[\begin{array}{cccccc} \infty & 2 & 3 & \infty & 1 & \infty \\ 2 & \infty & 1 & 1 & \infty & 4 \\ 3 & 1 & \infty & 5 & \infty & \infty \\ \infty & 1 & 5 & \infty & 4 & 2 \\ 1 & \infty & \infty & 4 & \infty & 3 \\ \infty & 4 & \infty & 2 & 3 & \infty \end{array}\right] \]