|
From: | lan gao |
Subject: | Re: [igraph] Help!!!how to get the laplacian of a huge graph with more than 10000 nodes? |
Date: | Thu, 23 Oct 2008 12:43:08 -0500 |
Do it "by hand":
L <- Diagonal(vcount(g), degree(g)) - get.adjacency(g, sparse=TRUE))
Gabor
ps. don't forget to handle loop/multiple edges if you might have any.
> _______________________________________________
On Thu, Oct 23, 2008 at 7:00 PM, lan gao <address@hidden> wrote:
> I have a large graph with more than 100000 nodes.
> When I use graph.laplacian(g) , R says "can not locate a vecotor of size..."
> If I save the graph in a sparse matrix form, then is not the right graph
> object that "graph.laplacian" requires.
> What can I do?
> Anybody knows how to sovles this problem? I appreciate your help.
>
>
>
> Lani
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
>
>
--
Gabor Csardi <address@hidden> UNIL DGM
_______________________________________________
igraph-help mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/igraph-help
[Prev in Thread] | Current Thread | [Next in Thread] |