igraph-help
[Top][All Lists]
Advanced

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

RE: [igraph] Problem loading Graphml file with edge weights in igraph


From: Rui Carvalho
Subject: RE: [igraph] Problem loading Graphml file with edge weights in igraph
Date: Sun, 14 Sep 2008 17:36:06 +0100

Hello Tamas,

I've corrected as you suggested (apologies for the stupid mistake in the
first place), but python still crashes. I attach the corrected graphml file.
I'm running active state python 2.5.2.2 in windows Vista 32 bit.

Any ideas on why this is happening?

Cheers,
Rui


-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of
Tamas Nepusz
Sent: 13 September 2008 00:17
To: Help for igraph users
Subject: Re: [igraph] Problem loading Graphml file with edge weights in
igraph

Hi Rui,

> Igraph reports an error and crashes when I try to load the weighted  
> network, but finishes fine when I load the unweighted  network (just  
> remove comments accordingly). Is there a work around to this? Am I  
> making some stupid mistake?
The <data> keys should be _inside_ the corresponding <edge> tags and  
not after them. igraph is pretty conservative in GraphML parsing, so  
it refuses to load any GraphML file that does not adhere to the  
GraphML standard (although it definitely shouldn't crash, I'll check  
that later).

So the proper syntax is:

<edge source="2" target="3">
   <data key="d1">17.19</data>
</edge>

-- 
Tamas



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

Attachment: network_with_weights.graphml
Description: Binary data

Attachment: process_data.py
Description: Text document


reply via email to

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