Displaying 1 result from an estimated 1 matches for "adj_matrices".
2012 Aug 22
3
help
...I will have 265 vectors with dimensions: the number of nodes each week.
In the following code I tried, the program just write one vector called indeg[i] corresponding to the last week, where I would like indeg1, indeg2,...,indeg265.
Rm(list())
library(R.matlab)
library(igraph)
path<-("D:/adj_matrices/nonweighted_GOVSOV")
setwd(path)
vector.files<-paste("nonweighted_GOVSOV",1:265, ".mat",sep="")
dat<-list()
for(i in 1:265) {
dat[[i]] <-readMat(file.path(path,vector.files[i]))
adj<-do.call(rbind, dat[[i]])
g<-graph.adjacency(adj, mode=c("dir...