here a input is a matrix
#include<iostream>
using namespace std;
int main()
{
int matrix[n][n]={0};
for(j=0;j<no_edges;j++) //no_edges----max edges in the matrix
{
cin>>row>>col;
matrix[row][col]=1;
matrix[col][row]=1;
}
eigen(matrix);
}
eigen(matrix[][])
{
//defination?????
}
here all the inputs of the matrix n*n is either 1 or 0... n=3 also matrix is symmetrical along its diagonal and has 0 value in its diagonal={(0,1,0);(1,0,1);(0,1,0)}.Also i think performance can be improved using adjacency list...But how to multiply a adjacency list as awe do in adjacency matrix?