igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[igraph] connected graph returns shortest.paths with inf


From: Martin Tomko
Subject: [igraph] connected graph returns shortest.paths with inf
Date: Tue, 31 Aug 2010 17:25:00 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.8) Gecko/20100227 Lightning/1.0b1 Thunderbird/3.0.3

Dear All,
I am not sure how this can be possible - I have a graph (is.connected returns TRUE), and when I run
    nodes <- V(g);
y<-lapply(nodes,function(x){shortest.paths(g,x)})
I get Inf values in y

max(y[[1]]) returns Inf, and also sum(y[[1]]==Inf), meaning that there are disconnected nodes.

How could that happen?

Cheers
Martin

--
Martin Tomko
Postdoctoral Research Assistant

Geographic Information Systems Division
Department of Geography
University of Zurich - Irchel
Winterthurerstr. 190
CH-8057 Zurich, Switzerland

email:  address@hidden
site:   http://www.geo.uzh.ch/~mtomko
mob:    +41-788 629 558
tel:    +41-44-6355256
fax:    +41-44-6356848




reply via email to

[Prev in Thread] Current Thread [Next in Thread]