Hi Everyone,
Have a question about changing edge thickness over time. I have been asked if I can change the thickness of the edges over time in Gephi. I thought it would be similar to changing the size of the nodes over time by having a dynamic integer column with values like: <[1.0,10.0, 20];[10.0, Infinity, 30]> in them, going to the ranking panel and using apply continuously in the size tab in the nodes section. However there doesn't seem to be an edge size tab in edges in the ranking panel. I added a dynamic attribute in the edges in my gexf file. Here is an example of an edge in my:
<edges>
<edge id="9" source="1" target="2" start="1.0" end="93.0">
<attvalues>
<attvalue for="edgesize" value="10" start="1.0" end="5.0"></attvalue>
<attvalue for="edgesize" value="70" start="5.0" end="93.0"></attvalue>
</attvalues>
</edge>
It seems I can only change the size/colour of the edge label and the colour of the label. I checked out this link and other links but had no luck http://forum.gephi.org/viewtopic.php?t=2037. So I was wondering what is the easiest way to do this and do I need a plugin.
Cheers again for your help and patience with me,
Lorcan
Edge thickness
-
- 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: Edge thickness
Hi,
replace 'edgesize' by 'weight'.
replace 'edgesize' by 'weight'.
-
- Posts:8
- Joined:10 Sep 2012 12:39 [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: Edge thickness
Hi Eduardo,
Thanks for the quick reply. Still not having much luck with edge thickness so I have included code for a toy example I am trying to get working first. When I import the gexf file into Gephi I get the following errors:
"Attribute with id 'Weight', already exists, the attribute is ignored.
The time interval for edge 'edge id='0' attribute could not be parsed. Use, xsd:date, xsd:dateTime or Double matting."
I get the second error for each of the edges. I have tried a number of variations and not to sure what else to try so any help if possible would be a huge help.
Cheers again,
Lorcan
Thanks for the quick reply. Still not having much luck with edge thickness so I have included code for a toy example I am trying to get working first. When I import the gexf file into Gephi I get the following errors:
"Attribute with id 'Weight', already exists, the attribute is ignored.
The time interval for edge 'edge id='0' attribute could not be parsed. Use, xsd:date, xsd:dateTime or Double matting."
I get the second error for each of the edges. I have tried a number of variations and not to sure what else to try so any help if possible would be a huge help.
Cheers again,
Lorcan
Code: Select all
<?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="2012-09-24">
<creator>Gephi 0.8.1</creator>
<description></description>
</meta>
<graph defaultedgetype="directed" timeformat="double" mode="dynamic">
<attributes class="node" mode="dynamic">
</attributes>
<attributes class="edge" mode="dynamic">
<attribute id="edgesize" title="edgesize" type="integer"></attribute>
<attribute id="Weight" title="Weight" type="integer"></attribute>
</attributes>
<nodes>
<node id="0" label="Leonard" start="2.0" end="8.0">
<attvalues></attvalues>
</node>
<node id="1" label="Sheldon" start="2.0" end="8.0">
<attvalues></attvalues>
</node>
<node id="2" label="Raj" start="2.0" end="8.0">
<attvalues></attvalues>
</node>
<node id="3" label="Howard" start="2.0" end="8.0">
</node>
<node id="4" label="Penny" start="2.0" end="8.0">
</node>
</nodes>
<edges>
<edge id="0" source="0" target="1" start="2.0" end="8.0">
<attvalues>
<attvalue for="Weight" value="1" start="2.0" end="5.0"></attvalue>
<attvalue for="Weight" value="2" start="5.0" end="8.0"></attvalue>
</attvalues>
</edge>
<edge id="1" source="0" target="2" start="2.0" end="8.0">
<attvalues>
<attvalue for="Weight" value="1" start="2.0" end="5.0"></attvalue>
<attvalue for="Weight" value="2" start="5.0" end="8.0"></attvalue>
</attvalues>
</edge>
<edge id="4" source="0" target="3" start="2.0" end="8.0">
<attvalues>
<attvalue for="Weight" value="1" start="2.0" end="5.0"></attvalue>
<attvalue for="Weight" value="2" start="5.0" end="8.0"></attvalue>
</attvalues>
</edge>
<edge id="2" source="1" target="0" start="2.0" end="8.0">
<attvalues>
<attvalue for="Weight" value="1" start="2.0" end="5.0"></attvalue>
<attvalue for="Weight" value="2" start="5.0" end="8.0"></attvalue>
</attvalues>
</edge>
<edge id="5" source="1" target="4" start="2.0" end="8.0">
<attvalues>
<attvalue for="Weight" value="1" start="2.0" end="5.0"></attvalue>
<attvalue for="Weight" value="2" start="5.0" end="8.0"></attvalue>
</attvalues>
</edge>
<edge id="3" source="2" target="1" start="2.0" end="8.0">
<attvalues>
<attvalue for="Weight" value="1" start="2.0" end="5.0"></attvalue>
<attvalue for="Weight" value="2" start="5.0" end="8.0"></attvalue>
</attvalues>
</edge>
</edges>
</graph>
</gexf>
- 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: Edge thickness
Hi,
Your file needs a a few changes for correct dynamic weight, it should be float.
This is a correct file:
I used several different values to better see changes while moving the timeline.
Eduardo
Your file needs a a few changes for correct dynamic weight, it should be float.
This is a correct file:
Code: Select all
<?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="2012-09-24">
<creator>Gephi 0.8.1</creator>
<description></description>
</meta>
<graph defaultedgetype="directed" timeformat="double" mode="dynamic">
<attributes class="node" mode="dynamic">
</attributes>
<attributes class="edge" mode="dynamic">
<attribute id="weight" title="weight" type="float"></attribute>
</attributes>
<nodes>
<node id="0" label="Leonard" start="2.0" end="8.0">
<attvalues></attvalues>
</node>
<node id="1" label="Sheldon" start="2.0" end="8.0">
<attvalues></attvalues>
</node>
<node id="2" label="Raj" start="2.0" end="8.0">
<attvalues></attvalues>
</node>
<node id="3" label="Howard" start="2.0" end="8.0">
</node>
<node id="4" label="Penny" start="2.0" end="8.0">
</node>
</nodes>
<edges>
<edge id="0" source="0" target="1" start="2.0" end="8.0">
<attvalues>
<attvalue for="weight" value="2" start="2.0" end="3.5"></attvalue>
<attvalue for="weight" value="4" start="3.5" end="8.0"></attvalue>
</attvalues>
</edge>
<edge id="1" source="0" target="2" start="2.0" end="8.0">
<attvalues>
<attvalue for="weight" value="1" start="2.0" end="4.0"></attvalue>
<attvalue for="weight" value="3" start="4.0" end="8.0"></attvalue>
</attvalues>
</edge>
<edge id="4" source="0" target="3" start="2.0" end="8.0">
<attvalues>
<attvalue for="weight" value="3" start="2.0" end="2.3"></attvalue>
<attvalue for="weight" value="1" start="2.3" end="8.0"></attvalue>
</attvalues>
</edge>
<edge id="2" source="1" target="0" start="2.0" end="8.0">
<attvalues>
<attvalue for="weight" value="2" start="2.0" end="7.0"></attvalue>
<attvalue for="weight" value="5" start="7.0" end="8.0"></attvalue>
</attvalues>
</edge>
<edge id="5" source="1" target="4" start="2.0" end="8.0">
<attvalues>
<attvalue for="weight" value="2" start="2.0" end="5.0"></attvalue>
<attvalue for="weight" value="2.5" start="5.0" end="8.0"></attvalue>
</attvalues>
</edge>
<edge id="3" source="2" target="1" start="2.0" end="8.0">
<attvalues>
<attvalue for="weight" value="1" start="2.0" end="5.0"></attvalue>
<attvalue for="weight" value="2" start="5.0" end="8.0"></attvalue>
</attvalues>
</edge>
</edges>
</graph>
</gexf>
Eduardo
-
- Posts:8
- Joined:10 Sep 2012 12:39 [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: Edge thickness
Hi Eduardo,
Cheers again. Its working perfectly fine now. Never would have thought that the dynamic weight should have been a float but now I know thanks to you.
Cheers,
Lorcan
Cheers again. Its working perfectly fine now. Never would have thought that the dynamic weight should have been a float but now I know thanks to you.
Cheers,
Lorcan