[R] Bonpower Crashes Trying Sparse Matrix (Igraph)

Gábor Csárdi csardi at rmki.kfki.hu
Tue Apr 7 10:07:13 CEST 2009


For the records, the possible solution is here:
http://igraph.wikidot.com/r-recipes#toc6

Gabor

On Mon, Apr 6, 2009 at 9:22 PM, Surendar Swaminathan
<surendar.swaminathan at gmail.com> wrote:
> Hello All,
>
> I have been trying to do bonpow for a while now.Bonpow works for few graphs
> and for few others it goes out of memory.
>
> I did see reply to one of the posting Alph Centrality Crashed in Igraph
> memory error.
>
> The solution in the posting was to use sparse matrix. This is the link of
> the message.
>
> http://lists.gnu.org/archive/html/igraph-help/2008-04/msg00071.html
> I was able to obtain edgelist for the graph and I do not know how to convert
> that to sparse matrix and obtain bonpow.
> Can someone help me.
>  This is what I tried
>
> Summary(g)
>
> Vertices: 8047
> Edges: 99060
> Directed: FALSE
> No graph attributes.
> Vertex attributes: name.
> No edge attributes.
> I use get.adjacency( graph,Sparse=TR
>
> UE) to obtain the sparse matrix.Converted the sparse matrix to graph and fed
> the graph object to bonpow.
> Can someone help me with this.I know I am making a big mistake but I do not
> know how to solve them.
>
> Please find the attached graph object along with this mail.
>
> Nathan.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
>



-- 
Gabor Csardi <Gabor.Csardi at unil.ch>     UNIL DGM




More information about the R-help mailing list