int main(void) { LGraph newgraph = CreateGraph(7); buildGraph_test(newgraph); showmatrix(newgraph); return 0; }
int main(void) { int vertices = 7; MGraph tg = CreateGraph(vertices); buildGraph_test(tg); showmatrix(tg); bfs_iterative(tg, 0, visit); return 0; }
int main() { int m,n; int a[20][20],b[20][20],c[20][20]; printf("Enter the number of rows for the first matrix"); scanf("%d",&m); printf("Enter the number of columns for the first matrix"); scanf("%d",&n); int p,q; printf("Enter the number of rows for the second matrix"); scanf("%d",&p); printf("Enter the number of columns for the second matrix"); scanf("%d",&q); getmatrix(m,n,a); getmatrix(p,q,b); multiply(m,n,a,p,q,b,c); showmatrix(m,n,c); return 0; }