Hi Jorge, On Mon, Dec 17, 2012 at 10:22 AM, Jorge Gil <[email protected]> wrote: [...]
> bet<-betweenness(lg,v=V(lg)[**name %in% lo$road_id],directed=F,** > normalized=T,weights=E(lg)$**metric) > This seems to be bug. The workaround is to calculate the betweenness for all vertices and then select the ones you want, manually. (It won't be any slower, betweenness is calculated for all vertices anyway, even if you only request a single vertex.) [...] > As a final point: I would like the weight to be selected dynamically so > that I can repeat the analysis in a loop for different weights. How can I > refer to the Edge attributes dynamically, using an index for example. > get.edge.attribute(lg, "weight1") get.edge.attribute(lg, "weight2") etc. Thanks for the bug report! Best, Gabor > > > Thank you in advance, > Jorge > > -- > Jorge Gil > PhD Candidate > > TU Delft / Faculty of Architecture > Department of Urbanism > Chair of Spatial Planning and Strategy > > Julianalaan 134 > 2628 BL Delft > P.O. Box 5043 > 2600 GA Delft > The Netherlands > > www.tudelft.nl > > > _______________________________________________ > 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
