data("und_intnet_chicago")
g <- und_intnet_chicago$graph
gen_corr <- NodeGeneralCorrelation(und_intnet_chicago, dep_type = 'correlation', lag_max = 2,
intensity = igraph::vertex_attr(g)$intensity)
Run the code above in your browser using DataLab