I want to know the value of assortativity for special kinds of graphs.
Some tools exist for analyzing graph structures and calculation of some measures on them (these measures also used in social networks and in general complex networks field). I generated some undirected K-Regular graphs and running igraph library of R for calculating the assortativity but the result of its library was NAN (Not A Number) for all of my generated graphs.
I don't know in theory is this value actually not defined or correct value is 1 or 0 and there is a limitation for some situations in implementation and programming of this library.
I use this code by using igraph package of R assortativity.degree(sg, directed=FALSE)
sg
is K-Regular graphs generated by SNAP project (http://snap.stanford.edu/) that loads from a file and entire of this process is done for other kinds of networks and assortativity calculated correctly but for K-Regular graphs this problem exist.
I also see this page that mentioned the same problem for ring graphs and some notes on value of assortativity but at last I can't solve my question completely!