igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] problems with import of Pajek .net file


From: Martin Tomko
Subject: Re: [igraph] problems with import of Pajek .net file
Date: Wed, 11 Aug 2010 15:14:19 +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

Hi gabor,
I am on Windows (XP, or 2003 server). Yes, I did not imply that igraph would be caching, it would be R. My fault, I was not aware of this (and I don't think I noticed such a behaviour before...).
Anyway, thanks a lot!
Cheers
M.

On 8/11/2010 2:55 PM, Gábor Csárdi wrote:
On Wed, Aug 11, 2010 at 2:44 PM, Martin Tomko<address@hidden>  wrote:
Hi All,
I have no idea what changed, but now it all works. It seems that I had to
exit R and reload it, not just reload the source, after I replaced the input
file. Is there some caching going on?
Certainly not by igraph. If you open the file in R, replace it, and
then read from it in R, AFAIK R is still reading the old contents.
(Although this might be platform dependent and I don't know which
platform you are using.)

Gabor

Apologies for wasting your time, and thanks a lot!

Martin

On 8/11/2010 2:14 PM, Gábor Csárdi wrote:
Works fine on OSX as well, igraph 0.5.4, R 2.11.1.

FYI,
Gabor

On Wed, Aug 11, 2010 at 2:07 PM, Tamas Nepusz<address@hidden>    wrote:

Hi again,

It works for me in igraph 0.5.3 as well (R 2.11.0, igraph 0.5.3, Linux).

--
Tamas

On Wed, Aug 11, 2010 at 12:20:23PM +0200, Martin Tomko wrote:

Hi All,
I am experiencing a problem reading a pjek formatted graph (that I
output from my own conversion script). The graph opens fine in Pajek
itself.

I get the following error:
Fehler in read.graph.pajek(file, ...) :
   At type_indexededgelist.c:245 : cannot add edges, Invalid vertex id

It is a very simple graph with no fancy attributes, just :

*Vertices 8309
1
2
3
4
5
6
...
*Edges
1 2
1 7044
10 985
100 1901
...

I have output many other .net graphs and ingested them into igraph
without problems before, although from a different procedure and
input, so it must be something with the new input graph data I have,
I assume.

I made sure that the number of vertices is correct, they are
numbered from 1, sequentially, and ordered in the output, and I also
ordered the edges. I have no idea what could be the problem.
Is there a way to enable more verbose debug output from igraph in R,
so that I see which vertex number is the problem?

the two graphs are available here, if anyone wants to try...:
http://www.geo.uzh.ch/~mtomko/myoutput.net
http://www.geo.uzh.ch/~mtomko/pajektest.net

Thanks
Martin


_______________________________________________
igraph-help mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/igraph-help

_______________________________________________
igraph-help mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/igraph-help





--
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






--
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]