[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[igraph] Gabor, could help me out of this
From: |
lan gao |
Subject: |
[igraph] Gabor, could help me out of this |
Date: |
Fri, 28 Nov 2008 23:20:05 -0600 |
Gabor,
Sorry to bother you. I have trouble with the following...
I read a graph data into R from a text file. The graph is a weighted graph with more than 6000 nodes. This is the summary of the graph:
summary(g)
Vertices: 6905
Edges: 7965
Directed: FALSE
No graph attributes.
Vertex attributes: name.
Edge attributes: weight.
Then I need to get the adjacency matrix of the graph. and I use A<-get.adjacency(g, sparse=TRUE, attr="weight") ( I need to store this huge matrix as sparse matrix otherwise it will cause a memroy problem).
Then it comes the error "Error in pmin(el[, 1], el[, 2]) + 1 : non-numeric argument to binary operator ".
I can successful use A<-get.adjacency(g0, sparse=TRUE) before to test a huge random graph g0 generated by "barabarsi.game". . But the same command does not work for
the read in weighted graph.
I could not figure out the problem, could you please help me out?
Thanks tons!
lani
- [igraph] Gabor, could help me out of this,
lan gao <=