Data Structures C++
MATRIX A ---- Rows, Cols and number of non common values: 6, 6, 14 The valuesArray for matrix A are : 2 2 2 3 2 2 2 3 4 2 3 2 3 4 The JA for matrix A are : 1 2 0 2 3 4 0 1 5 1 4 1 3 2 The IA for matrix A are : 0 2 6 9 11 13 The matrix A is : 0 2 2 0 0 0 2 0 3 2 2 0 2 3 0 0 0 4 0 2 0 0 3 0 0 2 0 3 0 0 0 0 4 0 0 0 Edge existance between 5 and 2: True, 4 Neighbours of 1 are: (0,2), (2,3), (3,2), (4,2) BFS with start node 0 is: 0,1,2,3,4,5 DFS with start node 0 is: 0,1,2,5,3,4