Dates and "endopen=" in dynamic attributes

Evolution and dynamics on networks in Gephi: UI, data formats, algorithms...
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
User avatar
seinecle
Gephi Community Support
Posts:546
Joined:08 Feb 2010 16:55
Location:Lyon, France
Contact:
Dates and "endopen=" in dynamic attributes

Post by seinecle » 21 Jan 2011 10:17

Hi,

### This works ###

<edge source="20th century fox" target="england">
<attvalues>
<attvalue for="weight" value="2.0" start="2006.0" end="2006.0"></attvalue>
<attvalue for="weight" value="3.0" start="2008.0" end="2009.0"></attvalue>
</attvalues>
</edge>

### This does not work ### (Gephi freezes during the import)

<edge source="20th century fox" target="england">
<attvalues>
<attvalue for="weight" value="2.0" start="2006.0" end="2006.0"></attvalue>
<attvalue for="weight" value="3.0" start="2009.0" end="2009.0"></attvalue>
</attvalues>
</edge>

(the only difference is the starting date in the second line for attvalue: 2009 instead of 2008).

The easy fix is to change "end" for "endopen" on the second attvalue:

### This works ###

<edge source="20th century fox" target="england">
<attvalues>
<attvalue for="weight" value="2.0" start="2006.0" end="2006.0"></attvalue>
<attvalue for="weight" value="3.0" start="2009.0" endopen="2009.0"></attvalue>
</attvalues>
</edge>

The question is, why does the first attvalue accept "end=", while the second needs "endopen="?

I thought Gephi developers would like to know that it happens - and maybe have an explanation for that!

Best,

Clement

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