I tried searching a function for matlab that gives the average neighbor degree of a graph.
There is a function for the same in python in network-X package. So i was wondering if there's a similar function in matlab.
***********Edit****************
I cannot convert it to an adjacency matrix.. this will occupy too much of space actually.
What i have is the following edge list(Actually this is just a test matrix.. the actual one is pretty large ) as in there's an edge between node 2 to node 1 and so on.. and yes this is an un-directed graph
2 1
3 1
4 1
5 1
1 2
3 2
4 2
1 3
2 3
5 3
1 4
2 4
5 4
1 5
3 5
4 5
Now, what i need is a function that will compute the average neighbor degree(mean neighbor degree) for this graph.