Dynamic Edge Attribute Weight

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
jodi.basner
Posts:3
Joined:06 Oct 2011 16:09
[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
Dynamic Edge Attribute Weight

Post by jodi.basner » 06 Oct 2011 16:21

Hi,

I am new to dynamic graphics with Gephi and running short on time. Can someone please provide feedback as to
why the following code does not provide a dynamic visualization of the edge weight? I am expecting the edge
weight to be 20 for the year 2004 and the weight to be 5 for years 2005-2008.

Thanks for your help!

<?xml version="1.0" encoding="UTF-8"?>
<gexf xmlns="http://www.gexf.net/1.2draft" 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" version="1.2">
<meta lastmodifieddate="2009-03-20">
<creator>Gexf.net</creator>
<description>A Web network changing over time</description>
</meta>
<graph mode="dynamic" defaultedgetype="undirected">
<attributes class="node" mode="static">
<attribute id="0" title="discipline" type="string"/>
</attributes>
<attributes class="edge" mode="dynamic">
<attribute id="weight" title="weight" type="float"/>
</attributes>
<nodes>
<node id="0" label="NODE0" start="2004" end="2008">
<attvalues>
<attvalue for="0" value="OC"/>
</attvalues>
</node>
<node id="1" label="NODE1" start="2004" end="2008">
<attvalues>
<attvalue for="0" value="OC"/>
</attvalues>
</node>
</nodes>
<edges>
<edge source="0" target="1">
<attvalues>
<attvalue for="weight" value="20.0" start="2004" end="2005"></attvalue>
<attvalue for="weight" value="5.0" start="2005" end="2008"></attvalue>
</attvalues>
</edge>
</edges>
</graph>
</gexf>

ajay978
Posts:3
Joined:03 Jun 2012 18:18
[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: Dynamic Edge Attribute Weight

Post by ajay978 » 03 Jun 2012 21:53

Hi,
Even I came across with this issue recently ?
Were you able to fix this issue ? please let me know.

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: Dynamic Edge Attribute Weight

Post by admin » 04 Jun 2012 09:03

Set timeformat="date".

ajay978
Posts:3
Joined:03 Jun 2012 18:18
[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: Dynamic Edge Attribute Weight

Post by ajay978 » 05 Jun 2012 19:44

Even setting timeformat="date" doesn't help ?

Please see the attache graph

<?xml version="1.0" encoding="UTF-8"?>
<gexf xmlns="http://www.gexf.net/1.2draft" 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" version="1.2">
<meta lastmodifieddate="2009-03-20">
<creator>Gexf.net</creator>
<description>A Web network changing over time</description>
</meta>
<graph mode="dynamic" defaultedgetype="undirected" timeformat="date">
<attributes class="node" mode="static">
<attribute id="0" title="discipline" type="string"/>
</attributes>
<attributes class="edge" mode="dynamic">
<attribute id="weight" title="weight" type="float"/>
</attributes>
<nodes>
<node id="0" label="NODE0" start="2004" end="2008">
<attvalues>
<attvalue for="0" value="OC"/>
</attvalues>
</node>
<node id="1" label="NODE1" start="2004" end="2008">
<attvalues>
<attvalue for="0" value="OC"/>
</attvalues>
</node>
</nodes>
<edges>
<edge source="0" target="1">
<attvalues>
<attvalue for="weight" value="20.0" start="2004" end="2005"></attvalue>
<attvalue for="weight" value="5.0" start="2007" end="2008"></attvalue>
</attvalues>
</edge>
</edges>
</graph>
</gexf>

User avatar
eduramiba
Gephi Code Manager
Posts:1064
Joined:22 Mar 2010 15:30
Location:Madrid, Spain
[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: Dynamic Edge Attribute Weight

Post by eduramiba » 06 Jun 2012 19:25

Hi,
The file with timeformat="date" works for me on Gephi 0.8.1 beta.
Do you get the same as the attached image in edge table?

Eduardo
Attachments
weight.png
weight.png (2.89KiB)Viewed 3844 times

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