[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[igraph] Boolean attributes in graphml
From: |
Frederik Elwert |
Subject: |
[igraph] Boolean attributes in graphml |
Date: |
Fri, 15 Nov 2013 19:44:09 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 |
Hello,
I want to import a graphml file into igraph. The file has a boolean
attribute:
<key id="type" for="node" attr.name="type" attr.type="boolean"/>
The attribute is written like this:
<data key="type">false</data>
Gephi loads this fine, but igraph fails to load this attribute as bool.
(In python, it becomes a float with the value 0.0, regardless if it is
'true' or 'false'.)
I looked how igraph saves boolean values, but it looks like it saves
them as 'double', not as 'boolean'.
Is it possible to load boolean values from graphml files into igraph?
Regards
Frederik
- [igraph] Boolean attributes in graphml,
Frederik Elwert <=