[solved] gexf Position+ Size of Nodes are changing on Import

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
Ijon.Tichy
Posts:2
Joined:12 Oct 2011 14:53
[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] gexf Position+ Size of Nodes are changing on Import

Post by Ijon.Tichy » 02 Nov 2011 16:19

I used gephi 0.8 beta and opened the enclosed gexf file 1.
When I export the file without doing anything the position and size values haved changed (see node a changes from size 100, xyz 200, 200,200 to size 4 xyz -15,-15,20) see second file 2.
Is there a reason for it or is that a bug.
[Solved] I just realised that there is a auto scale button when you open the file and that is responsible for the scaling effect. Maybe I leave this message for other users getting confused aswell.

What I also realise is that in the gephi overview the edges are slightly missaligned after import, especially when you zoom in. It seems as if they are starting from different positions and not from the center of the node. The Preview does it alright so it may be a simplification for quick overview.


File 1

<?xml version="1.0" encoding="UTF-8"?>
<gexf xmlns="http://www.gexf.net/1.2draft" version="1.2" xmlns:viz="http://www.gexf.net/1.2draft/viz" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.gexf.net/1.2draft http://www.gexf.net/1.2draft/gexf.xsd">
<meta lastmodifieddate="2011-11-02">
<creator>Gephi 0.8</creator>
<description></description>
</meta>
<graph defaultedgetype="directed" timeformat="double" mode="dynamic">
<nodes>
<node id="a" label="a">
<attvalues></attvalues>
<viz:size value="40.0"></viz:size>
<viz:position x="200.0" y="200.0" z="200.0"></viz:position>
<viz:color r="153" g="153" b="153"></viz:color>
</node>
<node id="b" label="b">
<attvalues></attvalues>
<viz:size value="40.0"></viz:size>
<viz:position x="300.0" y="300.0" z="300.0"></viz:position>
<viz:color r="153" g="153" b="153"></viz:color>
</node>
<node id="c" label="c">
<attvalues></attvalues>
<viz:size value="40.0"></viz:size>
<viz:position x="400.0" y="400.0" z="400.0"></viz:position>
<viz:color r="153" g="153" b="153"></viz:color>
</node>
<node id="d" label="d">
<attvalues></attvalues>
<viz:size value="40.0"></viz:size>
<viz:position x="500.0" y="500.0" z="500.0"></viz:position>
<viz:color r="153" g="153" b="153"></viz:color>
</node>
</nodes>
<edges>
<edge source="a" target="b">
<attvalues>
<attvalue for="weight" value="1.0"></attvalue>
</attvalues>
</edge>
<edge source="a" target="c">
<attvalues>
<attvalue for="weight" value="1.0"></attvalue>
</attvalues>
</edge>
<edge source="a" target="d">
<attvalues>
<attvalue for="weight" value="1.0"></attvalue>
</attvalues>
</edge>
<edge source="b" target="a">
<attvalues>
<attvalue for="weight" value="1.0"></attvalue>
</attvalues>
</edge>
<edge source="b" target="d">
<attvalues>
<attvalue for="weight" value="1.0"></attvalue>
</attvalues>
</edge>
<edge source="c" target="d">
<attvalues>
<attvalue for="weight" value="1.0"></attvalue>
</attvalues>
</edge>
</edges>
</graph>
</gexf>



File 2


<?xml version="1.0" encoding="UTF-8"?>
<gexf xmlns="http://www.gexf.net/1.2draft" version="1.2" xmlns:viz="http://www.gexf.net/1.2draft/viz" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.gexf.net/1.2draft http://www.gexf.net/1.2draft/gexf.xsd">
<meta lastmodifieddate="2011-11-02">
<creator>Gephi 0.8</creator>
<description></description>
</meta>
<graph defaultedgetype="directed" timeformat="double" mode="dynamic">
<nodes>
<node id="a" label="a">
<attvalues></attvalues>
<viz:size value="4.0"></viz:size>
<viz:position x="-15.0" y="-15.0" z="20.0"></viz:position>
<viz:color r="153" g="153" b="153"></viz:color>
</node>
<node id="b" label="b">
<attvalues></attvalues>
<viz:size value="4.0"></viz:size>
<viz:position x="-5.0" y="-5.0" z="30.0"></viz:position>
<viz:color r="153" g="153" b="153"></viz:color>
</node>
<node id="c" label="c">
<attvalues></attvalues>
<viz:size value="4.0"></viz:size>
<viz:position x="5.0" y="5.0" z="40.0"></viz:position>
<viz:color r="153" g="153" b="153"></viz:color>
</node>
<node id="d" label="d">
<attvalues></attvalues>
<viz:size value="4.0"></viz:size>
<viz:position x="15.0" y="15.0" z="50.0"></viz:position>
<viz:color r="153" g="153" b="153"></viz:color>
</node>
</nodes>
<edges>
<edge source="a" target="b">
<attvalues>
<attvalue for="weight" value="1.0"></attvalue>
</attvalues>
</edge>
<edge source="a" target="c">
<attvalues>
<attvalue for="weight" value="1.0"></attvalue>
</attvalues>
</edge>
<edge source="a" target="d">
<attvalues>
<attvalue for="weight" value="1.0"></attvalue>
</attvalues>
</edge>
<edge source="b" target="a">
<attvalues>
<attvalue for="weight" value="1.0"></attvalue>
</attvalues>
</edge>
<edge source="b" target="d">
<attvalues>
<attvalue for="weight" value="1.0"></attvalue>
</attvalues>
</edge>
<edge source="c" target="d">
<attvalues>
<attvalue for="weight" value="1.0"></attvalue>
</attvalues>
</edge>
</edges>
</graph>
</gexf>

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