There are 6 nodes (1, 2, 3, 4, 5, 6) and 9 arcs ((1,2), (1,3), (2,3), (2,4), (3,4), (3,5), (4,5), (4,6), (5,6)).
Next, we need to create the matrix A. The matrix A will have a row for each node and a column for each arc. The entry in row i and column j will be 1
Show more…