Thank you. I sure will.. /jm
 Date: Tue, 23 Apr 2013 08:41:30 -0400
From: [email protected]
To: [email protected]
Subject: Re: [igraph] I'm getting Different MST each time

Hi, that's an old version of igraph and an old version of R. Could you please 
update igraph (and if you want, R as well)? The most recent igraph version is 
0.6.5-1. Thanks.
G.


On Tue, Apr 23, 2013 at 8:20 AM, jameson mcfarlane <[email protected]> 
wrote:




Gabor,
      I've attached 4 runs as well as the session info for you to see.
 
Thanks again for your help.
 
/jm 
Date: Mon, 22 Apr 2013 23:13:43 -0400

From: [email protected]
To: [email protected]
Subject: Re: [igraph] I'm getting Different MST each time


A have just run this 100 times, it always gave me the same MST. Please make 
sure that the problem exists for this file. If it really does, then send me the 
output of the sessionInfo() function. Thanks.


G.

On Mon, Apr 22, 2013 at 10:31 PM, jameson mcfarlane <[email protected]> 
wrote:




Gabor,
   Here is a sample .csv file.
 
Thanks,
Jameson 
Date: Mon, 22 Apr 2013 22:14:24 -0400
From: [email protected]


To: [email protected]
Subject: Re: [igraph] I'm getting Different MST each time

Hi, unfortunately we cannot run your code because we don't have the .csv file. 
Please send some self-contained example that reproduces the problem, e.g. make 
up some toy data. See e.g.

http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example


Thanks,Gabor

On Mon, Apr 22, 2013 at 9:44 PM, jameson mcfarlane <[email protected]> 
wrote:






Hello,
     I am creating a minimum spanning tree (MST) with i-graph. For some reason, 
I seem to get a different MST diagram (nodes in different order) each time I 
run it. For example, sometimes the primary tree node is say "Jon K.". Other 
times, it could be "Larry Z." Could any help with what I am doing wrong?



 
Here is the code:
 
library(igraph) 
tab <- read.csv("NewJam12.csv") 
tab <- tab[,-1] 
g <- graph.adjacency(as.matrix(tab), weighted=TRUE) 
V(g)$label <- V(g)$name 
mst <- as.undirected(minimum.spanning.tree(g)) 




lay <- layout.reingold.tilford(mst, root=which.max(degree(mst))-1) 
lay <- cbind(lay[,2], lay[,1])    # rotate 
x11(width=20, height=10) 
plot(mst, layout=lay, vertex.size= 5, vertex.size2=15, 
     vertex.shape="circle", asp=FALSE, 



     vertex.label.cex=0.5, vertex.color="green") 

 
                                          

_______________________________________________

igraph-help mailing list

[email protected]

https://lists.nongnu.org/mailman/listinfo/igraph-help




-- 
Gabor Csardi <[email protected]>     MTA KFKI RMKI



_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help                           
          

_______________________________________________

igraph-help mailing list

[email protected]

https://lists.nongnu.org/mailman/listinfo/igraph-help




-- 
Gabor Csardi <[email protected]>     MTA KFKI RMKI



_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help                           
          

_______________________________________________

igraph-help mailing list

[email protected]

https://lists.nongnu.org/mailman/listinfo/igraph-help




-- 
Gabor Csardi <[email protected]>     MTA KFKI RMKI



_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help                           
          
_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to