|
From: | Jorge Gil |
Subject: | Re: [igraph] simplify returns non-simple graph |
Date: | Wed, 12 Dec 2012 20:26:54 +0100 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/17.0 Thunderbird/17.0 |
Hi Gabor, Regarding the first issue, it was my mistake: is.simple(simplify(graph)) returns TRUE. I was doing simplify(g) but forgot that the simplified result needs to be put back in another (or the same) object. So afterwards is.simple(g) was still returning FALSE... As for the second problem, I found that one of the weight columns (length) has a few NA values. If I use the other weight or run the unweighted analysis it calculates closeness without crashing. So, after setting the NA values in the 'length' attribute to 0 it now works fine. In any case, I attach an R data set with the edge list data used to create the graph. Thank you for your prompt support. Jorge On 12/12/2012 19:59, Gábor Csárdi
wrote:
Hi 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 |
bus_routes.Rdata
Description: Binary data
[Prev in Thread] | Current Thread | [Next in Thread] |