[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 583: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 639: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
Gephi forums •[SOLVED] GraphML import error in Beta?
Page 1 of 1

[SOLVED] GraphML import error in Beta?

Posted: 03 Nov 2010 04:26
by Mountaineer
Hello, I currently have two versions of Gephi which I compile from Netbeans.

In the most up to date version (Beta), the graphML file doesn't recognize "population" as a valid attribute. Instead it chooses to designate it as the node's "label". I have no idea what causes this behavior. This keeps me from being able to size nodes based of population, which is a big reason behind the entire file. I do not get this behavior with the "lat" attribute at all.

Here's a snippet from the graphML file

Code: Select all

<key id="d0" for="node" attr.name="city" attr.type="string"/>
<key id="d1" for="node" attr.name="state" attr.type="string"/>
<key id="d2" for="node" attr.name="country" attr.type="string"/>
<key id="d3" for="node" attr.name="population" attr.type="double"/>
<key id="d4" for="node" attr.name="lat" attr.type="double"/>
...
The Alpha version of Gephi recognizes population as an attribute, like it should. What's causing this in the Beta version?

Thanks

Re: GraphML import error in Beta??

Posted: 03 Nov 2010 10:53
by mbastian
The 'd3' attribute is automatically used as a label, just use other name for your attribute ans it should be fine.

We do that to be compatible with yEd graph files, as suggested by someone in this bug.

Re: GraphML import error in Beta??

Posted: 03 Nov 2010 16:20
by admin
However the "d3" attribute could be duplicated as a data column?

Re: GraphML import error in Beta??

Posted: 07 Nov 2010 05:06
by Mountaineer
Thanks, good to know.