[SOLVED] Spells: nodes that appear and disappear

All questions about the GEXF (see http://gexf.net before)
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
L.J.
Posts:22
Joined:01 Mar 2010 13:33
Contact:
[SOLVED] Spells: nodes that appear and disappear

Post by L.J. » 10 May 2011 13:28

Good morning,

Today I'm struggling with dynamic graphs. For scientific purposes I need to create a movie (such as those beautiful movies that you upload at vimeo).

Some nodes of my dynamic gexf appear and disappear more than once trough time, so I know by reading the gexf primer documentation that I have to use "spells" instead of using regular start and end.

I have wrote a gexf with spells accordingly to the documentation, but it doesn't works as it is supposed to work. Node "3" have to appear in t=200, disappear in t=250, and appear again in t=400. But instead of that, node "3" is there from the beginning.

Here I paste the example gexf. WHAT I'M DOING WRONG?

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<gexf xmlns:viz="http:///www.gexf.net/1.1draft/viz" version="1.1" xmlns="http://www.gexf.net/1.1draft">
<meta lastmodifieddate="2011-04-07 15:22:57">
        <creator>Gephi 0.7</creator>
</meta>
<graph type="dynamic"  start="0" end="500">
<nodes count="3">
<node id="1" label="1" start="0" end="300">
	<viz:size value="10.0"/>
	<viz:color b="0" g="0" r="0"/>
	<viz:position x="0.0" y="0.0" z="0.0"/>
</node>
<node id="2" label="2" start="0">
	<viz:size value="10.0"/>
	<viz:color b="0" g="0" r="0"/>
	<viz:position x="0.0" y="0.0" z="0.0"/>
</node>
<node id="3" label="3">
<spells>
        <spell start="200" end="250"/>
        <spell start="400" end="500"/>
</spells>
</node>
</nodes>

</graph>
</gexf> 

Thanks for your help!
LJ.

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: Spells: nodes that appear and disappear

Post by admin » 10 May 2011 14:17

Hi,

Your GEXF need to be declared following the 1.2draft specification. Instead of:

Code: Select all

<gexf xmlns:viz="http://www.gexf.net/1.1draft/viz" version="1.1" xmlns="http://www.gexf.net/1.1draft"> ...
Use:

Code: Select all

<gexf xmlns:viz="http://www.gexf.net/1.2draft/viz" version="1.2" xmlns="http://www.gexf.net/1.2draft"> ...
Does it solve the issue?

L.J.
Posts:22
Joined:01 Mar 2010 13:33
Contact:

Re: Spells: nodes that appear and disappear

Post by L.J. » 11 May 2011 10:34

Changing that line didn't solve the problem. But I could solve it just by using gephi 0.8 alpha instead of gephi 0.7 beta.

While using the 0.7 version none of the 1.1 or 1.2 draft specifications worked.
Fortunately the 0.8 version supported both draft specifications.

Thanks a lot!!!

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