[SOLVED] GraphML import error in Beta?

Get help with your data
Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Mountaineer
Posts:5
Joined:08 Jul 2010 21:08
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
[SOLVED] GraphML import error in Beta?

Post by Mountaineer » 03 Nov 2010 04:26

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

User avatar
mbastian
Gephi Architect
Posts:728
Joined:10 Dec 2009 10:11
Location:San Francisco, CA
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: GraphML import error in Beta??

Post by mbastian » 03 Nov 2010 10:53

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.

admin
Gephi Community Manager
Posts:964
Joined:09 Dec 2009 14:41
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: GraphML import error in Beta??

Post by admin » 03 Nov 2010 16:20

However the "d3" attribute could be duplicated as a data column?

Mountaineer
Posts:5
Joined:08 Jul 2010 21:08
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: GraphML import error in Beta??

Post by Mountaineer » 07 Nov 2010 05:06

Thanks, good to know.

Post Reply
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable