I noticed the problem. My expression to fetch ID is right.

The problem was with the digits of my distance matrix. Actual values and R 
print were different. There is options() functions to see that. 

Anyway, I rounded the distance matrix and problem is solved.

Thanks,

HP 
> On 30 Jul 2016, at 17:55, harun pirim <[email protected]> wrote:
> 
> Dear All,
> 
> A simple question:
> 
> How can I get the ID of an edge from its weight attribute?
> 
> I tried 'which(E(MST1)$weight == 0.0082032813)’.
> 
> Thank you,
> 
> HP

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

Reply via email to