search for: matrixmy

Displaying 1 result from an estimated 1 matches for "matrixmy".

Did you mean: matrixm
2009 Mar 25
1
Weighted Graph Link strength ( I am making mistake please help)
...dsheet I have( Unique 3559 Nodes) snippet of 4 rows. Node1 Node2 Weights 1 2 5 2 3 30 2 4 30 1 4 5 3 4 30 1 3 2 I created a program reading the csv and created a Adjacency matrix.From the adjacency matrix I created graph.I am not sure the mistake I am making. Program to read and create Matrix matrixmy<-scan("test.csv",sep=",",skip=1) arr=array(0,dim=c(4,4)) a<-1 while(a<=length(matrixmy)) { i=matrixmy[a] a<-a+1 j=matrixmy[a] a<-a+1 k=matrixmy[a] arr[i,j]<-k arr[j,i]<-k a<-a+1 } Created matrix mat1<-matrix(data=arr,nrow=4,ncol=4) g&...